diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-07-28 16:27:13 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-07-28 19:06:57 +0000 |
| commit | a05eaf28bdeea793829bddb6cc99220b1adb1d6f (patch) | |
| tree | 9e8909d93a9344cbd764897ea3f4517cfbc444e5 /selection.h | |
| parent | search: find_next(): handle trailing SPACER cells (diff) | |
selection: selection_on_rows(): use scrollback relative coords
When checking if the current selection intersects with the
region (passed as parameter to the function), use scrollback relative
coordinates.
This fixes an issue where selections crossing the scrollback
wrap-around being misdetected, resulting in either the selection being
canceled while scrolling, even though it wasn’t scrolled out, or the
selection _not_ being canceled, when it _was_ scrolled out.
Diffstat (limited to 'selection.h')
| -rw-r--r-- | selection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/selection.h b/selection.h index 3d0c224e..c6d7f968 100644 --- a/selection.h +++ b/selection.h @@ -22,6 +22,8 @@ void selection_extend( bool selection_on_rows(const struct terminal *term, int start, int end); +void selection_scroll_up(struct terminal *term, int rows); +void selection_scroll_down(struct terminal *term, int rows); void selection_view_up(struct terminal *term, int new_view); void selection_view_down(struct terminal *term, int new_view); |
