diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2006-04-20 20:05:52 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2006-04-20 20:05:52 +0000 |
commit | b585a9fad59f9d0c07681778b97d36b67bd9748d (patch) | |
tree | d809e30a40f38fd19b05d2cbd920187e84108432 /readline/keymaps.c | |
parent | 84041b4c47edb0461f3b82afb77ca2d81819ebfa (diff) | |
download | gdb-b585a9fad59f9d0c07681778b97d36b67bd9748d.zip gdb-b585a9fad59f9d0c07681778b97d36b67bd9748d.tar.gz gdb-b585a9fad59f9d0c07681778b97d36b67bd9748d.tar.bz2 |
import of readlilne 5.1FSF
Diffstat (limited to 'readline/keymaps.c')
-rw-r--r-- | readline/keymaps.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/readline/keymaps.c b/readline/keymaps.c index 12506d3..70d0cc0 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 */ |