svn commit: trunk/busybox/miscutils

vda at busybox.net vda at busybox.net
Sun Oct 26 00:24:39 UTC 2008


Author: vda
Date: 2008-10-25 17:24:38 -0700 (Sat, 25 Oct 2008)
New Revision: 23792

Log:
less: FEATURE_LESS_LINENUMS depends on FEATURE_LESS_DASHCMD



Modified:
   trunk/busybox/miscutils/Config.in
   trunk/busybox/miscutils/less.c


Changeset:
Modified: trunk/busybox/miscutils/Config.in
===================================================================
--- trunk/busybox/miscutils/Config.in	2008-10-26 00:19:33 UTC (rev 23791)
+++ trunk/busybox/miscutils/Config.in	2008-10-26 00:24:38 UTC (rev 23792)
@@ -318,7 +318,7 @@
 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.
 

Modified: trunk/busybox/miscutils/less.c
===================================================================
--- trunk/busybox/miscutils/less.c	2008-10-26 00:19:33 UTC (rev 23791)
+++ trunk/busybox/miscutils/less.c	2008-10-26 00:24:38 UTC (rev 23792)
@@ -192,7 +192,8 @@
 	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;




More information about the busybox-cvs mailing list