diff options
author | Denis Vlasenko | 2008-10-26 00:24:38 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-10-26 00:24:38 +0000 |
commit | f3dcd3c30aa704a542b50357094d037f976be3ce (patch) | |
tree | 68df196db73e94ecd30d0c0b80b2bfffa4fe225f /miscutils | |
parent | 7462b21dbe9d31f94ed54c246128378596a54286 (diff) | |
download | busybox-f3dcd3c30aa704a542b50357094d037f976be3ce.zip busybox-f3dcd3c30aa704a542b50357094d037f976be3ce.tar.gz |
less: FEATURE_LESS_LINENUMS depends on FEATURE_LESS_DASHCMD
Diffstat (limited to 'miscutils')
-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 40edf23..074e6c4 100644 --- a/miscutils/Config.in +++ b/miscutils/Config.in @@ -318,7 +318,7 @@ config FEATURE_LESS_REGEXP config FEATURE_LESS_LINENUMS bool "Enable dynamic switching of line numbers" default n - depends on LESS + depends on FEATURE_LESS_DASHCMD help Enable "-N" command. diff --git a/miscutils/less.c b/miscutils/less.c index 6f28200..4f00fad 100644 --- a/miscutils/less.c +++ b/miscutils/less.c @@ -192,7 +192,8 @@ static void less_exit(int code) exit(code); } -#if ENABLE_FEATURE_LESS_LINENUMS || ENABLE_FEATURE_LESS_WINCH +#if (ENABLE_FEATURE_LESS_DASHCMD && ENABLE_FEATURE_LESS_LINENUMS) \ + || ENABLE_FEATURE_LESS_WINCH static void re_wrap(void) { int w = width; |