key-binding: add bind to clear scrollback but keep current line

This commit is contained in:
Baltazár Radics 2022-04-27 21:29:06 +02:00
parent d7a4f9e99e
commit a3fc484028
7 changed files with 29 additions and 0 deletions

View file

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