summaryrefslogtreecommitdiff
path: root/readline/keymaps.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-05-05 18:26:14 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-05-05 18:26:14 +0000
commitc6fad60c72bac0b0ba1b7912f866caa3a6cb744c (patch)
treecb1fdaddf8e7f48afb82b1d028764ce7521e34c2 /readline/keymaps.c
parentc3f93e41631d798ff739e1936c51b29515cd4248 (diff)
downloadgdb-c6fad60c72bac0b0ba1b7912f866caa3a6cb744c.tar.gz
Readline 5.1 import for HEAD.
Diffstat (limited to 'readline/keymaps.c')
-rw-r--r--readline/keymaps.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/readline/keymaps.c b/readline/keymaps.c
index 12506d3aab2..70d0cc08d3f 100644
--- a/readline/keymaps.c
+++ b/readline/keymaps.c
@@ -64,11 +64,13 @@ rl_make_bare_keymap ()
keymap[i].function = (rl_command_func_t *)NULL;
}
+#if 0
for (i = 'A'; i < ('Z' + 1); i++)
{
keymap[i].type = ISFUNC;
keymap[i].function = rl_do_lowercase_version;
}
+#endif
return (keymap);
}
@@ -79,8 +81,9 @@ rl_copy_keymap (map)
Keymap map;
{
register int i;
- Keymap temp = rl_make_bare_keymap ();
+ Keymap temp;
+ temp = rl_make_bare_keymap ();
for (i = 0; i < KEYMAP_SIZE; i++)
{
temp[i].type = map[i].type;
@@ -109,12 +112,8 @@ rl_make_keymap ()
newmap[CTRL('H')].function = rl_rubout;
#if KEYMAP_SIZE > 128
- /* Printing characters in some 8-bit character sets. */
- for (i = 128; i < 160; i++)
- newmap[i].function = rl_insert;
-
- /* ISO Latin-1 printing characters should self-insert. */
- for (i = 160; i < 256; i++)
+ /* Printing characters in ISO Latin-1 and some 8-bit character sets. */
+ for (i = 128; i < 256; i++)
newmap[i].function = rl_insert;
#endif /* KEYMAP_SIZE > 128 */