aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-16 19:16:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-16 19:16:35 +0000
commite3992b8379e24f4c9ed1cc020483d8363958df58 (patch)
tree510d74bc36d9b3f76744728bf0454f1e5d225b6d /selection.c
parentselection: don't automatically no-op operations if selection isn't enabled (diff)
selection: update: don't assert on 'start' being set
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/selection.c b/selection.c
index 811b71a5..7e5a12ab 100644
--- a/selection.c
+++ b/selection.c
@@ -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",