]> git.deb.at Git - pkg/abook.git/commitdiff
more readline tuning
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 11 Mar 2002 11:00:31 +0000 (11:00 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Mon, 11 Mar 2002 11:00:31 +0000 (11:00 +0000)
abook_rl.c

index fe070700899b42f943fc7d3ccba74d673be68e67..be8ac908b0062f436bc9b12afb2a9c282fade5fb 100644 (file)
@@ -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());
        }