aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",