mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
selection: cancel: call selection_stop_scroll_timer()
Instead of re-implementing the same logic, simply call selection_stop_scroll_timer().
This commit is contained in:
parent
674e565b5a
commit
0cff7c7c4f
1 changed files with 1 additions and 4 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue