From: Chet Ramey Date: Wed, 9 Oct 2013 11:32:53 +0000 (-0400) Subject: commit bash-20130928 snapshot X-Git-Tag: bash-4.4-alpha~125 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4fbf1fe6a4500e96ea3247a88782b5e9608daef;p=thirdparty%2Fbash.git commit bash-20130928 snapshot --- diff --git a/CHANGES b/CHANGES index 6eb75d304..63226d9bd 100644 --- 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 diff --git a/CWRU/CWRU.chlog b/CWRU/CWRU.chlog index 267b88451..83d72bb6d 100644 --- a/CWRU/CWRU.chlog +++ b/CWRU/CWRU.chlog @@ -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 + diff --git a/lib/readline/readline.c b/lib/readline/readline.c index 524d43a42..2fedc1224 100644 --- a/lib/readline/readline.c +++ b/lib/readline/readline.c @@ -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;