diff --git a/edit/ChangeLog b/edit/ChangeLog index b17e031ed..9777aa331 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,9 @@ +2003-03-07 Pavel Roskin + + * editkeys.c (common_key_map): Delete previous word by + Alt-Backspace. Fix Ctrl-Backspace on some terminals. + Reported by Andrew V. Samoilov + 2003-03-06 Andrew V. Samoilov * syntax.c (edit_read_syntax_file): Fix segmentation violation. diff --git a/edit/editkeys.c b/edit/editkeys.c index e9139ca61..a8e416920 100644 --- a/edit/editkeys.c +++ b/edit/editkeys.c @@ -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 };