aboutsummaryrefslogtreecommitdiff
path: root/readline/bind.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2004-01-27 22:25:15 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2004-01-27 22:25:15 +0000
commit5af408ce2fd423dc9a9f8c91576a6a9dc52e16a1 (patch)
tree41d3d25bc81d867cc6cd88f6390466da39559ca2 /readline/bind.c
parente142c38c7126bcca9411b6a73e5d803860b224af (diff)
downloadgdb-5af408ce2fd423dc9a9f8c91576a6a9dc52e16a1.zip
gdb-5af408ce2fd423dc9a9f8c91576a6a9dc52e16a1.tar.gz
gdb-5af408ce2fd423dc9a9f8c91576a6a9dc52e16a1.tar.bz2
2004-01-27 Elena Zannoni <ezannoni@redhat.com>
Merge in official patches to readline-4.3 from ftp://ftp.cwru.edu/pub/bash/readline-4.3-patches: NOTE: Patch-ID readline-43-004 was already applied (see below). * bind.c (rl_generic_bind): Pressing certain key sequences causes an infinite loop in _rl_dispatch_subseq with the `key' argument set to 256. This eventually causes bash to exceed the stack size limit and crash with a segmentation violation. Patch-ID: readline43-001. * readline.c (_rl_dispatch_subseq): Repeating an edit in vi-mode with `.' does not work. Patch-ID: readline43-002. * mbutil.c (_rl_get_char_len, _rl_compare_chars, _rl_adjust_point): When in a locale with multibyte characters, the readline display updater will occasionally cause a segmentation fault when attempting to compute the length of the first multibyte character on the line. Patch-ID: readline43-003. * vi_mode.c (_rl_vi_change_mbchar_case): Using the vi editing mode's case-changing commands in a locale with multibyte characters will cause garbage characters to be inserted into the editing buffer. Patch-ID: readline43-005.
Diffstat (limited to 'readline/bind.c')
-rw-r--r--readline/bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/readline/bind.c b/readline/bind.c
index 65ef401..7103888 100644
--- a/readline/bind.c
+++ b/readline/bind.c
@@ -311,7 +311,7 @@ rl_generic_bind (type, keyseq, data, map)
mapped to something, `abc' to be mapped to something else,
and the function bound to `a' to be executed when the user
types `abx', leaving `bx' in the input queue. */
- if (k.function /* && k.type == ISFUNC */)
+ if (k.function && ((k.type == ISFUNC && k.function != rl_do_lowercase_version) || k.type == ISMACR))
{
map[ANYOTHERKEY] = k;
k.function = 0;