From: Jaakko Heinonen Date: Mon, 11 Mar 2002 11:00:31 +0000 (+0000) Subject: more readline tuning X-Git-Tag: upstream/0.6.1~2^2~288 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=baf6a3ad577ffd7a320f8c736b5e37e9858bac3d;p=pkg%2Fabook.git more readline tuning --- diff --git a/abook_rl.c b/abook_rl.c index fe07070..be8ac90 100644 --- a/abook_rl.c +++ b/abook_rl.c @@ -77,10 +77,11 @@ abook_rl_init(int use_completion) rl_completion_display_matches_hook = rline_compdisp; rl_unbind_function_in_map(rl_clear_screen, rl_get_keymap()); - - if(use_completion) + rl_unbind_function_in_map(rl_reverse_search_history, rl_get_keymap()); + + if(use_completion) { rl_bind_key('\t', rl_menu_complete); - else { + } else { rl_unbind_function_in_map(rl_complete, rl_get_keymap()); rl_unbind_function_in_map(rl_menu_complete, rl_get_keymap()); }