aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-28 22:44:38 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-28 22:44:38 +0000
commit46cb0de3471aed81ba5a495b46f9c218f2238e8e (patch)
tree03360d0ad9f7a8ea667176134276f58dfdf388e4 /status.c
parent7562781c9d05393b556caa348e324eca333f4089 (diff)
downloadrtmux-46cb0de3471aed81ba5a495b46f9c218f2238e8e.tar.gz
rtmux-46cb0de3471aed81ba5a495b46f9c218f2238e8e.tar.bz2
rtmux-46cb0de3471aed81ba5a495b46f9c218f2238e8e.zip
Sync OpenBSD patchset 187:
Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi). From Kalle Olavi Niemitalo.
Diffstat (limited to 'status.c')
-rw-r--r--status.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/status.c b/status.c
index 7bb550ad..87234ff2 100644
--- a/status.c
+++ b/status.c
@@ -1,4 +1,4 @@
-/* $Id: status.c,v 1.102 2009-07-28 22:32:15 tcunha Exp $ */
+/* $Id: status.c,v 1.103 2009-07-28 22:44:38 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -823,6 +823,12 @@ status_prompt_key(struct client *c, int key)
c->flags |= CLIENT_STATUS;
}
break;
+ case MODEKEYCMD_DELETETOENDOFLINE:
+ if (c->prompt_index < size) {
+ c->prompt_buffer[c->prompt_index] = '\0';
+ c->flags |= CLIENT_STATUS;
+ }
+ break;
case MODEKEYCMD_UP:
if (server_locked)
break;