sources/interface.cpp

changeset 118
ae284bf1b5ff
parent 117
39e05a6ba8d7
child 119
9eb47f1899be
--- a/sources/interface.cpp	Mon Jan 11 02:42:34 2016 +0200
+++ b/sources/interface.cpp	Mon Jan 11 02:49:29 2016 +0200
@@ -873,6 +873,11 @@
 				// readline alt-d - delete from here till next word boundary
 				yank (CursorPosition, find_next_word());
 				break;
+
+			case KEY_BACKSPACE: // alt+backspace, remove previous word
+			case '\b':
+				yank (find_previous_word(), CursorPosition);
+				break;
 			}
 		}
 		else

mercurial