diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-18 07:23:43 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-18 07:23:43 +0000 |
commit | feaf91ab939837a6397799a741b2258ed623f88a (patch) | |
tree | 7ffc4ed89af086a019ba3e5815760bc82fdf3048 /status.c | |
parent | c828c2f3665d1caed443816a066e3ac81b08ea83 (diff) | |
download | rtmux-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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'; |