aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-03 14:25:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-04 18:48:43 +0000
commit8113d2205d3a9798f84115f053200005c1a34d75 (patch)
tree3c9e88269a919115ab042095dcc217be86624ab4 /selection.c
parentselection: update: find_word_boundary_{left,right}: coordinates are screen local (diff)
selection: cancel: reset pivot coordinates
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c2
1 files changed, 2 insertions, 0 deletions
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;
}