871 case 'd': |
871 case 'd': |
872 case 'D': |
872 case 'D': |
873 // readline alt-d - delete from here till next word boundary |
873 // readline alt-d - delete from here till next word boundary |
874 yank (CursorPosition, find_next_word()); |
874 yank (CursorPosition, find_next_word()); |
875 break; |
875 break; |
|
876 |
|
877 case KEY_BACKSPACE: // alt+backspace, remove previous word |
|
878 case '\b': |
|
879 yank (find_previous_word(), CursorPosition); |
|
880 break; |
876 } |
881 } |
877 } |
882 } |
878 else |
883 else |
879 { |
884 { |
880 // No alt-key, handle pure escape |
885 // No alt-key, handle pure escape |