From 21adfe438b32cd0cd41ca00e99adfe827c4f4a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 13 Jun 2017 14:30:56 +0200 Subject: view: do not automatically anchor selections when setting range --- main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 3f73b6e..db8e969 100644 --- a/main.c +++ b/main.c @@ -1380,6 +1380,7 @@ static const char *cursors_select_next(Vis *vis, const char *keys, const Arg *ar size_t pos = text_char_prev(txt, word.end); if ((s = view_selections_new(view, pos))) { view_selections_set(s, &word); + view_selections_anchor(s); view_selections_primary_set(s); goto out; } @@ -1392,6 +1393,7 @@ static const char *cursors_select_next(Vis *vis, const char *keys, const Arg *ar size_t pos = text_char_prev(txt, word.end); if ((s = view_selections_new(view, pos))) { view_selections_set(s, &word); + view_selections_anchor(s); view_selections_primary_set(s); } -- cgit v1.2.3