mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
selection: selection_finalize() ignores invalid selections
This commit is contained in:
parent
0facfa4da7
commit
1f808781f4
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ selection_finalize(struct terminal *term)
|
|||
if (!selection_enabled(term))
|
||||
return;
|
||||
|
||||
if (term->selection.start.row == -1 || term->selection.end.row == -1)
|
||||
return;
|
||||
|
||||
assert(term->selection.start.row != -1);
|
||||
assert(term->selection.end.row != -1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue