bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vi-insertion-mode is never bound according to bind -p


From: isabella parakiss
Subject: vi-insertion-mode is never bound according to bind -p
Date: Fri, 29 May 2015 20:40:35 +0200

$ bind -p -m vi | grep vi-insertion
# vi-insertion-mode (not bound)

This was introduced in bash 4.0 and conflicts with the readline docs.

Small patch below...


---
xoxo iza



 lib/readline/funmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/readline/funmap.c b/lib/readline/funmap.c
index 64b0e41..62535bf 100644
--- a/lib/readline/funmap.c
+++ b/lib/readline/funmap.c
@@ -178,7 +178,7 @@ static const FUNMAP default_funmap[] = {
   { "vi-fword", rl_vi_fword },
   { "vi-goto-mark", rl_vi_goto_mark },
   { "vi-insert-beg", rl_vi_insert_beg },
-  { "vi-insertion-mode", rl_vi_insertion_mode },
+  { "vi-insertion-mode", rl_vi_insert_mode },
   { "vi-match", rl_vi_match },
   { "vi-movement-mode", rl_vi_movement_mode },
   { "vi-next-word", rl_vi_next_word },



reply via email to

[Prev in Thread] Current Thread [Next in Thread]