summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-readline.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-06-14 18:02:13 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-06-14 18:02:13 +0000
commit72b32ff1755c9223294d6069fa00eaa039563e64 (patch)
tree12084ba7040d976adda46380730b2ab397a357ee /src/fe-text/gui-readline.c
parent22b12d85ee7112e404d4b6af1ac52878baef50e7 (diff)
downloadirssi-72b32ff1755c9223294d6069fa00eaa039563e64.zip
Ctrl-W deletes word in left - patch from
Kjetil �degaard <kjetilod@orakel.ntnu.no> git-svn-id: http://svn.irssi.org/repos/irssi/trunk@341 dbcabf3a-b0e7-0310-adc4-f8d773084564
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())) {