diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-07-11 07:36:59 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-07-11 07:36:59 +0200 |
commit | a669eca3a230e35e4a6894a30168a047000f3b75 (patch) | |
tree | 3de2585731b58cf8da6f376324369e49dd243fd8 /libbb/Config.src | |
parent | 98f213ed7940d70a5ba7ea502469e51da8b0a2b0 (diff) | |
download | busybox-w32-a669eca3a230e35e4a6894a30168a047000f3b75.tar.gz busybox-w32-a669eca3a230e35e4a6894a30168a047000f3b75.tar.bz2 busybox-w32-a669eca3a230e35e4a6894a30168a047000f3b75.zip |
libbb/lineedit: implement optional Ctrl-R history search
function old new delta
read_line_input 3433 3957 +524
load_string 77 90 +13
input_tab 1086 1069 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 537/-17) Total: 520 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/Config.src')
-rw-r--r-- | libbb/Config.src | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libbb/Config.src b/libbb/Config.src index 0ea8f43ab..aa442365a 100644 --- a/libbb/Config.src +++ b/libbb/Config.src | |||
@@ -94,6 +94,14 @@ config FEATURE_EDITING_SAVEHISTORY | |||
94 | help | 94 | help |
95 | Enable history saving in shells. | 95 | Enable history saving in shells. |
96 | 96 | ||
97 | config FEATURE_REVERSE_SEARCH | ||
98 | bool "Reverse history search" | ||
99 | default y | ||
100 | depends on FEATURE_EDITING_SAVEHISTORY | ||
101 | help | ||
102 | Enable readline-like Ctrl-R combination for reverse history search. | ||
103 | Increases code by about 0.5k. | ||
104 | |||
97 | config FEATURE_TAB_COMPLETION | 105 | config FEATURE_TAB_COMPLETION |
98 | bool "Tab completion" | 106 | bool "Tab completion" |
99 | default y | 107 | default y |