selection: cancel: reset pivot coordinates

This commit is contained in:
Daniel Eklöf 2021-01-03 15:25:43 +01:00
parent 683f63c929
commit 8113d2205d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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