diff options
author | Timo Sirainen <cras@irssi.org> | 2000-04-26 10:22:52 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-04-26 10:22:52 +0000 |
commit | 79dbc156b6544d3c5d942bd8f30e9acb2974cad9 (patch) | |
tree | b447879e688405e108f72f772dd691138774d5a6 /src | |
parent | be0ccafd36c71ed543311b809100da5bb22c0d22 (diff) | |
download | irssi-79dbc156b6544d3c5d942bd8f30e9acb2974cad9.zip |
Delete key works again
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@179 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-readline.c | 8 |
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; |