aboutsummaryrefslogtreecommitdiff
path: root/selection.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-19 16:49:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-19 16:49:42 +0000
commit08588cd0fc25128a8ec013d65ca15d8e66d28e99 (patch)
tree9d112ef453d34dfd717b19f6ce09b06e1c54ad6c /selection.h
parentterm: scrolling: calling function must clamp scroll amount (diff)
selection: handle viewport wrap around correctly
When the viewport wraps around, the selection points may be "incorrect".
Diffstat (limited to 'selection.h')
-rw-r--r--selection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/selection.h b/selection.h
index 3a520820..758d5d29 100644
--- a/selection.h
+++ b/selection.h
@@ -19,6 +19,9 @@ void selection_extend(struct terminal *term, int col, int row, uint32_t serial);
bool selection_on_rows(const struct terminal *term, int start, int end);
+void selection_view_up(struct terminal *term, int new_view);
+void selection_view_down(struct terminal *term, int new_view);
+
void selection_mark_word(struct terminal *term, int col, int row,
bool spaces_only, uint32_t serial);
void selection_mark_row(struct terminal *term, int row, uint32_t serial);