aboutsummaryrefslogtreecommitdiff
path: root/selection.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-05 18:16:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-05 18:16:17 +0000
commitc06f141189c51450be3bfd896b9df7a9d423e79d (patch)
treefc4eb71fed2db196e8a766ec991faab0c9a24c7c /selection.h
parentselection: ensure start < end in finalize (diff)
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).
Diffstat (limited to 'selection.h')
-rw-r--r--selection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/selection.h b/selection.h
index 9d712da1..2e574b0b 100644
--- a/selection.h
+++ b/selection.h
@@ -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(