aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-08-18 07:23:43 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-08-18 07:23:43 +0000
commitfeaf91ab939837a6397799a741b2258ed623f88a (patch)
tree7ffc4ed89af086a019ba3e5815760bc82fdf3048 /status.c
parentc828c2f3665d1caed443816a066e3ac81b08ea83 (diff)
downloadrtmux-feaf91ab939837a6397799a741b2258ed623f88a.tar.gz
rtmux-feaf91ab939837a6397799a741b2258ed623f88a.tar.bz2
rtmux-feaf91ab939837a6397799a741b2258ed623f88a.zip
Add a "delete line" key when editing in the status line or the search up/down
prompt. C-u with emacs keys, d with vi.
Diffstat (limited to 'status.c')
-rw-r--r--status.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/status.c b/status.c
index c42dc896..d700f2c7 100644
--- a/status.c
+++ b/status.c
@@ -854,6 +854,11 @@ status_prompt_key(struct client *c, int key)
c->flags |= CLIENT_STATUS;
}
break;
+ case MODEKEYEDIT_DELETELINE:
+ *c->prompt_buffer = '\0';
+ c->prompt_index = 0;
+ c->flags |= CLIENT_STATUS;
+ break;
case MODEKEYEDIT_DELETETOENDOFLINE:
if (c->prompt_index < size) {
c->prompt_buffer[c->prompt_index] = '\0';