* editkeys.c (common_key_map): Delete previous word by

Alt-Backspace.  Fix Ctrl-Backspace on some terminals.
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
This commit is contained in:
Pavel Roskin 2003-03-07 21:47:32 +00:00
parent 61317cb730
commit 7cdbc354c2
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-03-07 Pavel Roskin <proski@gnu.org>
* editkeys.c (common_key_map): Delete previous word by
Alt-Backspace. Fix Ctrl-Backspace on some terminals.
Reported by Andrew V. Samoilov <sav@bcs.zp.ua>
2003-03-06 Andrew V. Samoilov <sav@bcs.zp.ua>
* syntax.c (edit_read_syntax_file): Fix segmentation violation.

View File

@ -180,6 +180,7 @@ static long const common_key_map[] = {
KEY_M_CTRL | (KEY_F (4)), CK_Replace_Again,
KEY_M_CTRL | (KEY_F (7)), CK_Find_Again,
KEY_M_CTRL | KEY_BACKSPACE, CK_Undo,
KEY_M_CTRL | 0177, CK_Undo,
KEY_M_CTRL | KEY_PPAGE, CK_Beginning_Of_Text,
KEY_M_CTRL | KEY_NPAGE, CK_End_Of_Text,
KEY_M_CTRL | KEY_HOME, CK_Beginning_Of_Text,
@ -191,6 +192,10 @@ static long const common_key_map[] = {
KEY_M_CTRL | KEY_IC, CK_XStore,
KEY_M_CTRL | KEY_DC, CK_Remove,
/* Alt */
KEY_M_ALT | KEY_BACKSPACE, CK_Delete_Word_Left,
KEY_M_ALT | 0177, CK_Delete_Word_Left,
0, 0
};