diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2024-05-11 16:27:29 -0600 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-05-21 20:21:46 -0600 |
| commit | 4c2b2d8a100a67212134c1bb89fad39311fa441e (patch) | |
| tree | 787c25f89551cd3222b43e43c077c47a1e6aaeb8 /sam.c | |
| parent | f4b26ee480b6c6af1bf27126ca7294847e9d3a79 (diff) | |
| download | vis-4c2b2d8a100a67212134c1bb89fad39311fa441e.tar.gz vis-4c2b2d8a100a67212134c1bb89fad39311fa441e.tar.xz | |
make View unopaque
Diffstat (limited to 'sam.c')
| -rw-r--r-- | sam.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
