diff options
-rw-r--r-- | miscutils/Config.in | 2 | ||||
-rw-r--r-- | miscutils/less.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/miscutils/Config.in b/miscutils/Config.in index 40edf23a2..074e6c41f 100644 --- a/miscutils/Config.in +++ b/miscutils/Config.in | |||
@@ -318,7 +318,7 @@ config FEATURE_LESS_REGEXP | |||
318 | config FEATURE_LESS_LINENUMS | 318 | config FEATURE_LESS_LINENUMS |
319 | bool "Enable dynamic switching of line numbers" | 319 | bool "Enable dynamic switching of line numbers" |
320 | default n | 320 | default n |
321 | depends on LESS | 321 | depends on FEATURE_LESS_DASHCMD |
322 | help | 322 | help |
323 | Enable "-N" command. | 323 | Enable "-N" command. |
324 | 324 | ||
diff --git a/miscutils/less.c b/miscutils/less.c index 6f28200d7..4f00fadb5 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -192,7 +192,8 @@ static void less_exit(int code) | |||
192 | exit(code); | 192 | exit(code); |
193 | } | 193 | } |
194 | 194 | ||
195 | #if ENABLE_FEATURE_LESS_LINENUMS || ENABLE_FEATURE_LESS_WINCH | 195 | #if (ENABLE_FEATURE_LESS_DASHCMD && ENABLE_FEATURE_LESS_LINENUMS) \ |
196 | || ENABLE_FEATURE_LESS_WINCH | ||
196 | static void re_wrap(void) | 197 | static void re_wrap(void) |
197 | { | 198 | { |
198 | int w = width; | 199 | int w = width; |