aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-13 14:30:56 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commit21adfe438b32cd0cd41ca00e99adfe827c4f4a95 (patch)
tree511abd57bc289174da5821c7109d26e9c2b53e72 /view.c
parenta845dec7336c379d007832cbc5ff9abbb9fe1dab (diff)
downloadvis-21adfe438b32cd0cd41ca00e99adfe827c4f4a95.tar.gz
vis-21adfe438b32cd0cd41ca00e99adfe827c4f4a95.tar.xz
view: do not automatically anchor selections when setting range
Diffstat (limited to 'view.c')
-rw-r--r--view.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/view.c b/view.c
index 1233b24..14cc4aa 100644
--- a/view.c
+++ b/view.c
@@ -1227,7 +1227,6 @@ void view_selections_set(Selection *s, const Filerange *r) {
s->anchor = text_mark_set(txt, r->start);
s->cursor = text_mark_set(txt, end);
}
- s->anchored = true;
view_cursors_to(s, text_mark_get(s->view->text, s->cursor));
}