From 26b652538d22115093da88c7a51c9ceb6cd2a353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 11 Aug 2020 10:14:38 +0200 Subject: [PATCH] selection: update: don't update if there's no ongoing selection --- selection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selection.c b/selection.c index 3eadf2ea..d0ed7bae 100644 --- a/selection.c +++ b/selection.c @@ -311,6 +311,9 @@ selection_update(struct terminal *term, int col, int row) if (term->selection.start.row < 0) return; + if (!term->selection.ongoing) + return; + LOG_DBG("selection updated: start = %d,%d, end = %d,%d -> %d, %d", term->selection.start.row, term->selection.start.col, term->selection.end.row, term->selection.end.col,