summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-text/gui-readline.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index e53c628b..39608119 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -158,6 +158,14 @@ void handle_key(gint key)
gui_entry_erase(1);
break;
+ case KEY_DC:
+ if (gui_entry_get_pos() < strlen(gui_entry_get_text()))
+ {
+ gui_entry_move_pos(1);
+ gui_entry_erase(1);
+ }
+ break;
+
case 0:
/* Ctrl-space - ignore */
break;