mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
term: cancel selection when scrolling wraps
If we scroll enough, we'll eventually end up wrapping around the entire scrollback buffer. At this point, a selection is no longer valid, so cancel it. Note: this was very obvious when scrolling in the alt screen, since its scrollback buffer is what you see on the screen (i.e. it has no scrollback).
This commit is contained in:
parent
1e08d93528
commit
c06f141189
3 changed files with 23 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ void selection_mark_word(struct terminal *term, int col, int row,
|
|||
void selection_to_clipboard(struct terminal *term, uint32_t serial);
|
||||
void selection_from_clipboard(struct terminal *term, uint32_t serial);
|
||||
void selection_from_primary(struct terminal *term);
|
||||
bool selection_on_row_in_view(const struct terminal *term, int row_no);
|
||||
|
||||
bool text_to_clipboard(struct terminal *term, char *text, uint32_t serial);
|
||||
void text_from_clipboard(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue