aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-10-11 16:24:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-10-11 16:24:47 +0000
commit0cff7c7c4f5fb5e4d141c97b55ccffdcc01a398d (patch)
tree6f0d6b5f7456d0714a82e1ba8d54b75db636a425 /selection.c
parentinput: comment: ‘measures’ -> ‘measured’ (diff)
selection: cancel: call selection_stop_scroll_timer()
Instead of re-implementing the same logic, simply call selection_stop_scroll_timer().
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/selection.c b/selection.c
index 20ed011c..54a50ff4 100644
--- a/selection.c
+++ b/selection.c
@@ -649,10 +649,7 @@ selection_cancel(struct terminal *term)
term->selection.start.row, term->selection.start.col,
term->selection.end.row, term->selection.end.col);
- if (term->selection.auto_scroll.fd >= 0) {
- fdm_del(term->fdm, term->selection.auto_scroll.fd);
- term->selection.auto_scroll.fd = -1;
- }
+ selection_stop_scroll_timer(term);
if (term->selection.start.row >= 0 && term->selection.end.row >= 0) {
foreach_selected(