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:
Tiago Cunha
2009-08-20 11:22:48 +00:00
parent 70fc085862
commit 2a5f08c15a
5 changed files with 19 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $Id: window-copy.c,v 1.80 2009-08-20 11:20:24 tcunha Exp $ */
/* $Id: window-copy.c,v 1.81 2009-08-20 11:22:48 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -365,6 +365,9 @@ window_copy_key_input(struct window_pane *wp, int key)
if (inputlen > 0)
data->inputstr[inputlen - 1] = '\0';
break;
case MODEKEYEDIT_DELETELINE:
*data->inputstr = '\0';
break;
case MODEKEYEDIT_ENTER:
switch (data->inputtype) {
case WINDOW_COPY_OFF: