From b4027118e65ac1f7a8b71d538ed323e23c482fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 7 Feb 2022 10:36:59 +0100 Subject: [PATCH] term: init: initialize selection pivot point coords to -1,-1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While this _shouldn’t_ be necessary (pivot points are only used while a selection is ongoing). But it doesn’t hurt to initialize them anyway. --- terminal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terminal.c b/terminal.c index 3b935909..81df743b 100644 --- a/terminal.c +++ b/terminal.c @@ -1158,6 +1158,10 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper, .selection = { .start = {-1, -1}, .end = {-1, -1}, + .pivot = { + .start = {-1, -1}, + .end = {-1, -1}, + }, .auto_scroll = { .fd = -1, },