]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
commit bash-20130928 snapshot
authorChet Ramey <chet@caleb.ins.cwru.edu>
Wed, 9 Oct 2013 11:32:53 +0000 (07:32 -0400)
committerChet Ramey <chet@caleb.ins.cwru.edu>
Wed, 9 Oct 2013 11:32:53 +0000 (07:32 -0400)
CHANGES
CWRU/CWRU.chlog
lib/readline/readline.c

diff --git a/CHANGES b/CHANGES
index 6eb75d304a3eab00928bc3d3dc2b521cf56a6ab2..63226d9bd2ade9d1eb0f4575c580b4c8df667688 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -33,6 +33,8 @@ a.  Changed message when an incremental search fails to include "failed" in
 b.  Fixed a bug that caused an arrow key typed to an incremental search prompt
     to process the key sequence incorrectly.
 
+c.  Additional key bindings for arrow keys on MinGW.
+
 3.  New Features in Bash
 
 a.  The help builtin now attempts substring matching (as it did through
index 267b884516e6d2666ed82b96e543e549b99d1c36..83d72bb6dccfd9b7453f87c6543402e47a9fcac2 100644 (file)
@@ -5276,3 +5276,11 @@ readline.h
                                   ----
 configure.ac
        - relstatus: bumped version to bash-4.3-beta2
+
+                                  9/24
+                                  ----
+
+lib/readline/readline.c
+       - bind_arrow_keys_internal: added more key bindings for the numeric key
+         pad arrow keys on mingw32.  Patch from Pierre Muller
+         <pierre.muller@ics-cnrs.unistra.fr>
index 524d43a4253e843059c4d0d57e11d6607e3482bb..2fedc122434e153e7df57e8d405e6cfcf7c64650 100644 (file)
@@ -1249,7 +1249,17 @@ bind_arrow_keys_internal (map)
   rl_bind_keyseq_if_unbound ("\340G", rl_beg_of_line);
   rl_bind_keyseq_if_unbound ("\340O", rl_end_of_line);
   rl_bind_keyseq_if_unbound ("\340S", rl_delete);
-  rl_bind_keyseq_if_unbound ("\340R", rl_overwrite_mode);  
+  rl_bind_keyseq_if_unbound ("\340R", rl_overwrite_mode);
+
+  /* These may or may not work because of the embedded NUL. */
+  rl_bind_keyseq_if_unbound ("\\000H", rl_get_previous_history);
+  rl_bind_keyseq_if_unbound ("\\000P", rl_get_next_history);
+  rl_bind_keyseq_if_unbound ("\\000M", rl_forward_char);
+  rl_bind_keyseq_if_unbound ("\\000K", rl_backward_char);
+  rl_bind_keyseq_if_unbound ("\\000G", rl_beg_of_line);
+  rl_bind_keyseq_if_unbound ("\\000O", rl_end_of_line);
+  rl_bind_keyseq_if_unbound ("\\000S", rl_delete);
+  rl_bind_keyseq_if_unbound ("\\000R", rl_overwrite_mode);
 #endif
 
   _rl_keymap = xkeymap;