sources/interface.cpp

changeset 118
ae284bf1b5ff
parent 117
39e05a6ba8d7
child 119
9eb47f1899be
equal deleted inserted replaced
117:39e05a6ba8d7 118:ae284bf1b5ff
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

mercurial