diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-07-12 19:05:03 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-07-14 11:45:15 +0200 |
| commit | 386eac2063bdda79279bbdea2fffcd7fc0ff682a (patch) | |
| tree | 73ef16bc7f07ba8848020b98be3cde123f5b0a36 /vis-modes.c | |
| parent | 546917d21ca10214c24d3871c92b81265de6958c (diff) | |
| download | vis-386eac2063bdda79279bbdea2fffcd7fc0ff682a.tar.gz vis-386eac2063bdda79279bbdea2fffcd7fc0ff682a.tar.xz | |
vis-lua: make selection first class primitives in Lua API
Diffstat (limited to 'vis-modes.c')
| -rw-r--r-- | vis-modes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vis-modes.c b/vis-modes.c index 4aa6949..b00ecfe 100644 --- a/vis-modes.c +++ b/vis-modes.c @@ -186,14 +186,14 @@ static void vis_mode_operator_input(Vis *vis, const char *str, size_t len) { static void vis_mode_visual_enter(Vis *vis, Mode *old) { if (!old->visual) { for (Selection *s = view_selections(vis->win->view); s; s = view_selections_next(s)) - view_selections_anchor(s); + view_selections_anchor(s, true); } } static void vis_mode_visual_line_enter(Vis *vis, Mode *old) { if (!old->visual) { for (Selection *s = view_selections(vis->win->view); s; s = view_selections_next(s)) - view_selections_anchor(s); + view_selections_anchor(s, true); } if (!vis->action.op) vis_motion(vis, VIS_MOVE_NOP); |
