From 7b32e8f0bf911fa03824a41f0939f90ad3282ff2 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 26 Oct 2008 00:15:36 +0000 Subject: [PATCH] less: disable _ command, it's useless bloat --- miscutils/less.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miscutils/less.c b/miscutils/less.c index d9ada619a..6f28200d7 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); -- 2.25.1