aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-08-20 11:22:48 +0000
committerTiago Cunha <tcunha@gmx.com>2009-08-20 11:22:48 +0000
commit2a5f08c15a3a3c3906fa7d96586725cbe40afb4d (patch)
treec9a9e0dc7458073cc4e9b74bc8e80b8877c7ddf3 /status.c
parent70fc0858628a430fb8c2a9415d63d192939cc5b7 (diff)
downloadrtmux-2a5f08c15a3a3c3906fa7d96586725cbe40afb4d.tar.gz
rtmux-2a5f08c15a3a3c3906fa7d96586725cbe40afb4d.tar.bz2
rtmux-2a5f08c15a3a3c3906fa7d96586725cbe40afb4d.zip
Sync OpenBSD patchset 265:
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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/status.c b/status.c
index a8a7f34b..17122f52 100644
--- a/status.c
+++ b/status.c
@@ -1,4 +1,4 @@
-/* $Id: status.c,v 1.110 2009-08-16 19:29:24 tcunha Exp $ */
+/* $Id: status.c,v 1.111 2009-08-20 11:22:47 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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';