From 06d7681cfffbc3e982fe192db4190f124b2b0848 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sat, 11 May 2024 17:52:28 -0600 Subject: make Selection unopaque --- vis-modes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vis-modes.c') diff --git a/vis-modes.c b/vis-modes.c index 2e120aa..41121a8 100644 --- a/vis-modes.c +++ b/vis-modes.c @@ -190,7 +190,7 @@ static void vis_mode_visual_enter(Vis *vis, Mode *old) { Win *win = vis->win; if (!old->visual && win) { for (Selection *s = view_selections(win->view); s; s = view_selections_next(s)) - view_selections_anchor(s, true); + s->anchored = true; } } @@ -198,7 +198,7 @@ static void vis_mode_visual_line_enter(Vis *vis, Mode *old) { Win *win = vis->win; if (!old->visual && win) { for (Selection *s = view_selections(win->view); s; s = view_selections_next(s)) - view_selections_anchor(s, true); + s->anchored = true; } if (!vis->action.op) vis_motion(vis, VIS_MOVE_NOP); @@ -213,7 +213,7 @@ static void vis_mode_visual_line_leave(Vis *vis, Mode *new) { window_selection_save(win); view_selections_clear_all(win->view); } else { - view_cursor_to(win->view, view_cursor_get(win->view)); + view_cursors_to(win->view->selection, view_cursor_get(win->view)); } } -- cgit v1.2.3