aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 17:26:22 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:42 +0200
commit318837f379d848a0ee431d25c15033a251433a33 (patch)
treec35a5f90c2e9754865a038ed63b944579769135d /vis.c
parent2fa1bea119b211b306281bc3688dee7af7889169 (diff)
downloadvis-318837f379d848a0ee431d25c15033a251433a33.tar.gz
vis-318837f379d848a0ee431d25c15033a251433a33.tar.xz
view: remove view_cursors_multiple
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vis.c b/vis.c
index 2455a59..ccb61ed 100644
--- a/vis.c
+++ b/vis.c
@@ -311,7 +311,7 @@ static void window_draw_cursorline(Win *win) {
return;
if (vis->mode->visual || vis->win != win)
return;
- if (view_cursors_multiple(view))
+ if (view_cursors_count(view) > 1)
return;
int width = view_width_get(view);
@@ -398,7 +398,7 @@ static void window_draw_cursor(Win *win, Cursor *cur, CellStyle *style, CellStyl
static void window_draw_cursors(Win *win) {
View *view = win->view;
Filerange viewport = view_viewport_get(view);
- bool multiple_cursors = view_cursors_multiple(view);
+ bool multiple_cursors = view_cursors_count(view) > 1;
Cursor *cursor = view_cursors_primary_get(view);
CellStyle style_cursor = win->ui->style_get(win->ui, UI_STYLE_CURSOR);
CellStyle style_cursor_primary = win->ui->style_get(win->ui, UI_STYLE_CURSOR_PRIMARY);
@@ -830,7 +830,7 @@ void vis_do(Vis *vis) {
if (a->op == &vis_operators[VIS_OP_MODESWITCH])
count = 1; /* count should apply to inserted text not motion */
bool repeatable = a->op && !vis->macro_operator && !vis->win->parent;
- bool multiple_cursors = view_cursors_multiple(view);
+ bool multiple_cursors = view_cursors_count(view) > 1;
bool linewise = !(a->type & CHARWISE) && (
a->type & LINEWISE || (a->movement && a->movement->type & LINEWISE) ||
vis->mode == &vis_modes[VIS_MODE_VISUAL_LINE]);