mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
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.
This commit is contained in:
7
status.c
7
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';
|
||||
|
Reference in New Issue
Block a user