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.
This commit is contained in:
Daniel Eklöf 2022-02-07 10:36:59 +01:00
parent 1eef5a00e6
commit b4027118e6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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,
},