mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-18 06:46:23 -04:00
key-binding: add bind to clear scrollback but keep current line
This commit is contained in:
parent
d7a4f9e99e
commit
a3fc484028
7 changed files with 29 additions and 0 deletions
7
input.c
7
input.c
|
|
@ -168,6 +168,13 @@ execute_binding(struct seat *seat, struct terminal *term,
|
|||
}
|
||||
break;
|
||||
|
||||
case BIND_ACTION_SCROLLBACK_CLEAR_KEEPCUR:
|
||||
if (term->grid == &term->normal) {
|
||||
cmd_scrollback_clear_keepcur(term);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
case BIND_ACTION_CLIPBOARD_COPY:
|
||||
selection_to_clipboard(seat, term, serial);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue