From feaf91ab939837a6397799a741b2258ed623f88a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 18 Aug 2009 07:23:43 +0000 Subject: 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. --- status.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'status.c') 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'; -- cgit