diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-27 12:11:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-27 12:11:11 +0000 |
commit | ad0aad21d5dcc7d8c09a6c76e85ae1e46cf6b0da (patch) | |
tree | eb08eb0c59cd214850b2da7eb36c8b5b3aa639e8 /status.c | |
parent | fc65da1eed07708030c0ae491cb8f4a6614de390 (diff) | |
download | rtmux-ad0aad21d5dcc7d8c09a6c76e85ae1e46cf6b0da.tar.gz rtmux-ad0aad21d5dcc7d8c09a6c76e85ae1e46cf6b0da.tar.bz2 rtmux-ad0aad21d5dcc7d8c09a6c76e85ae1e46cf6b0da.zip |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |