aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-02-07 09:36:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-07 09:36:59 +0000
commitb4027118e65ac1f7a8b71d538ed323e23c482fab (patch)
tree50b7c3db8974ae3386176ccd327cffe83031140d
parentchangelog: “(null)” being logged as font-name (diff)
term: init: initialize selection pivot point coords to -1,-1
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.
-rw-r--r--terminal.c4
1 files changed, 4 insertions, 0 deletions
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,
},