diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-13 14:30:56 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:43 +0200 |
| commit | 21adfe438b32cd0cd41ca00e99adfe827c4f4a95 (patch) | |
| tree | 511abd57bc289174da5821c7109d26e9c2b53e72 /main.c | |
| parent | a845dec7336c379d007832cbc5ff9abbb9fe1dab (diff) | |
| download | vis-21adfe438b32cd0cd41ca00e99adfe827c4f4a95.tar.gz vis-21adfe438b32cd0cd41ca00e99adfe827c4f4a95.tar.xz | |
view: do not automatically anchor selections when setting range
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |
