selection: update: don't assert on 'start' being set

This commit is contained in:
Daniel Eklöf 2020-05-16 21:16:35 +02:00
parent e4a2d41f51
commit e3992b8379
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -389,6 +389,7 @@ selection_modify(struct terminal *term, struct coord start, struct coord end)
void
selection_update(struct terminal *term, int col, int row)
{
if (term->selection.start.row == -1)
return;
LOG_DBG("selection updated: start = %d,%d, end = %d,%d -> %d, %d",