mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: update: don't update if there's no ongoing selection
This commit is contained in:
parent
9352befd13
commit
cddeaa2c1c
1 changed files with 3 additions and 0 deletions
|
|
@ -311,6 +311,9 @@ selection_update(struct terminal *term, int col, int row)
|
|||
if (term->selection.start.row < 0)
|
||||
return;
|
||||
|
||||
if (!term->selection.ongoing)
|
||||
return;
|
||||
|
||||
LOG_DBG("selection updated: start = %d,%d, end = %d,%d -> %d, %d",
|
||||
term->selection.start.row, term->selection.start.col,
|
||||
term->selection.end.row, term->selection.end.col,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue