summaryrefslogtreecommitdiff
path: root/miscutils/less.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-10-26 00:15:36 +0000
committerDenis Vlasenko2008-10-26 00:15:36 +0000
commit7b32e8f0bf911fa03824a41f0939f90ad3282ff2 (patch)
treeb6814d3543119c8ab9602399e3c992b0365d40fa /miscutils/less.c
parentbdd2d8f178dddb1564a545dcd0b46471e343852c (diff)
downloadbusybox-7b32e8f0bf911fa03824a41f0939f90ad3282ff2.zip
busybox-7b32e8f0bf911fa03824a41f0939f90ad3282ff2.tar.gz
less: disable _ command, it's useless bloat
Diffstat (limited to 'miscutils/less.c')
-rw-r--r--miscutils/less.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index d9ada61..6f28200 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -1211,6 +1211,7 @@ static void flag_change(void)
}
}
+#ifdef BLOAT
static void show_flag_status(void)
{
int keypress;
@@ -1246,6 +1247,8 @@ static void show_flag_status(void)
}
#endif
+#endif /* ENABLE_FEATURE_LESS_DASHCMD */
+
static void save_input_to_file(void)
{
const char *msg = "";
@@ -1450,10 +1453,12 @@ static void keypress_process(int keypress)
flag_change();
buffer_print();
break;
+#ifdef BLOAT
case '_':
show_flag_status();
break;
#endif
+#endif
#if ENABLE_FEATURE_LESS_BRACKETS
case '{': case '(': case '[':
match_right_bracket(keypress);