aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/view.c b/view.c
index db9a8a6..7dcc806 100644
--- a/view.c
+++ b/view.c
@@ -1265,6 +1265,7 @@ void view_cursors_selection_restore(Cursor *c) {
);
if (!text_range_valid(&sel))
return;
+ view_cursors_to(c, sel.end);
sel.end = text_char_next(txt, sel.end);
if (!(c->sel = view_selections_new(c->view, c)))
return;