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:
Nicholas Marriott
2009-08-18 07:23:43 +00:00
parent c828c2f366
commit feaf91ab93
5 changed files with 14 additions and 1 deletions

View File

@ -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: