summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/bind.c
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-01-31 18:22:52 -0800
committerunknown <jimw@mysql.com>2005-01-31 18:22:52 -0800
commit68baa2ac2e6e72b0b36ffa4e5c36c0965fdfc6d1 (patch)
tree8341c6bfb397d0a10c8864556612b1797a0718ec /cmd-line-utils/readline/bind.c
parent99620cecd8eb66ffdc21c4569cb86900f311548d (diff)
downloadmariadb-git-68baa2ac2e6e72b0b36ffa4e5c36c0965fdfc6d1.tar.gz
Fix bug in bundled GNU readline library, based on similar report for
GNU bash (http://lists.gnu.org/archive/html/bug-bash/2002-08/msg00042.html) and current code from GNU readline 5.0. (Bug #5672) cmd-line-utils/readline/bind.c: Import fix from readline-5.0 for endless recursion problem with some misunderstood key codes
Diffstat (limited to 'cmd-line-utils/readline/bind.c')
-rw-r--r--cmd-line-utils/readline/bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-line-utils/readline/bind.c b/cmd-line-utils/readline/bind.c
index 7e8ca04e0d6..fd01049f09f 100644
--- a/cmd-line-utils/readline/bind.c
+++ b/cmd-line-utils/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;