From e3992b8379e24f4c9ed1cc020483d8363958df58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 16 May 2020 21:16:35 +0200 Subject: [PATCH] selection: update: don't assert on 'start' being set --- selection.c | 1 + 1 file changed, 1 insertion(+) 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",