From 8113d2205d3a9798f84115f053200005c1a34d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 3 Jan 2021 15:25:43 +0100 Subject: [PATCH] selection: cancel: reset pivot coordinates --- selection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selection.c b/selection.c index 05080561..61eacf96 100644 --- a/selection.c +++ b/selection.c @@ -945,6 +945,8 @@ selection_cancel(struct terminal *term) term->selection.kind = SELECTION_NONE; term->selection.start = (struct coord){-1, -1}; term->selection.end = (struct coord){-1, -1}; + term->selection.pivot.start = (struct coord){-1, -1}; + term->selection.pivot.end = (struct coord){-1, -1}; term->selection.direction = SELECTION_UNDIR; term->selection.ongoing = false; }