From d4df3b11b5f3ddba5968e725f1d4cb22861c5477 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Wed, 31 Oct 2018 11:29:35 -0400 Subject: [PATCH] commit bash-snap-20181031 snapshot --- CWRU/CWRU.chlog | 14 ++++++++++++++ braces.c | 1 + lib/readline/terminal.c | 1 + 3 files changed, 16 insertions(+) diff --git a/CWRU/CWRU.chlog b/CWRU/CWRU.chlog index 068f2580..9134393a 100644 --- a/CWRU/CWRU.chlog +++ b/CWRU/CWRU.chlog @@ -4640,3 +4640,17 @@ redir.c raised back in March by Stephane Chazelas ; fix inspired by Martijn Dekker + + 10/29 + ----- +lib/readline/terminal.c + - bind_termcap_arrow_keys: bind the "kI" capability (what the Insert + keypad key outputs) to overwrite mode. Patch from Xose Vazquez Perez + + + 10/30 + ----- +braces.c + - mkseq: make sure to terminate result array before passing it to + strvec_dispose on an interrupt. Report and fix from Corbin Souffrant + diff --git a/braces.c b/braces.c index 2a255c78..485de369 100644 --- a/braces.c +++ b/braces.c @@ -438,6 +438,7 @@ mkseq (start, end, incr, type, width) #if defined (SHELL) if (ISINTERRUPT) { + result[i] = (char *)NULL; strvec_dispose (result); result = (char **)NULL; } diff --git a/lib/readline/terminal.c b/lib/readline/terminal.c index d9a6a999..e5573897 100644 --- a/lib/readline/terminal.c +++ b/lib/readline/terminal.c @@ -595,6 +595,7 @@ bind_termcap_arrow_keys (Keymap map) rl_bind_keyseq_if_unbound (_rl_term_at7, rl_end_of_line); /* End */ rl_bind_keyseq_if_unbound (_rl_term_kD, rl_delete); + rl_bind_keyseq_if_unbound (_rl_term_kI, rl_overwrite_mode); /* Insert */ _rl_keymap = xkeymap; }