less: FEATURE_LESS_LINENUMS depends on FEATURE_LESS_DASHCMD
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 26 Oct 2008 00:24:38 +0000 (00:24 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 26 Oct 2008 00:24:38 +0000 (00:24 -0000)
miscutils/Config.in
miscutils/less.c

index 40edf23a280093afbf9f679deb977a61943ed562..074e6c41f406cca7ea42b682c0aa96de03f4fe6b 100644 (file)
@@ -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.
 
index 6f28200d7bc8afd921fcc1c2c9fbfe6fef4b5eb6..4f00fadb5d8b9e1de004851788364b8529e641de 100644 (file)
@@ -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;