From 4c2b2d8a100a67212134c1bb89fad39311fa441e Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sat, 11 May 2024 16:27:29 -0600 Subject: make View unopaque --- sam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sam.c') diff --git a/sam.c b/sam.c index 223bbe2..ef39ff6 100644 --- a/sam.c +++ b/sam.c @@ -1509,11 +1509,11 @@ static bool cmd_select(Vis *vis, Win *win, Command *cmd, const char *argv[], Sel bool ret = true; View *view = win->view; Text *txt = win->file->text; - bool multiple_cursors = view_selections_count(view) > 1; + bool multiple_cursors = view->selection_count > 1; Selection *primary = view_selections_primary_get(view); if (vis->mode->visual) - count_init(cmd->cmd, view_selections_count(view)+1); + count_init(cmd->cmd, view->selection_count + 1); for (Selection *s = view_selections(view), *next; s && ret; s = next) { next = view_selections_next(s); -- cgit v1.2.3