aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}