summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r--src/fe-text/gui-readline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 8aa7b0a7..b68ec01e 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -208,6 +208,11 @@ void handle_key(int key)
gui_entry_erase(1);
break;
+ case 23:
+ /* C-w - erase word to the left of marker */
+ gui_entry_erase_word();
+ break;
+
case 4:
case KEY_DC:
if (gui_entry_get_pos() < strlen(gui_entry_get_text())) {