mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-08 08:20:59 -04:00
selection: update: don't assert on 'start' being set
This commit is contained in:
parent
e4a2d41f51
commit
e3992b8379
1 changed files with 1 additions and 0 deletions
|
|
@ -389,6 +389,7 @@ selection_modify(struct terminal *term, struct coord start, struct coord end)
|
||||||
void
|
void
|
||||||
selection_update(struct terminal *term, int col, int row)
|
selection_update(struct terminal *term, int col, int row)
|
||||||
{
|
{
|
||||||
|
if (term->selection.start.row == -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LOG_DBG("selection updated: start = %d,%d, end = %d,%d -> %d, %d",
|
LOG_DBG("selection updated: start = %d,%d, end = %d,%d -> %d, %d",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue