From a91e705dfd9b7358bf24e02312dfb06ab3e6848d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Jun 2017 18:26:59 +0200 Subject: view: rename view_cursors_count --- vis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vis.c') diff --git a/vis.c b/vis.c index cf647b3..2c72108 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_count(view) > 1) + if (view_selections_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_count(view) > 1; + bool multiple_cursors = view_selections_count(view) > 1; Cursor *cursor = view_selections_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_count(view) > 1; + bool multiple_cursors = view_selections_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]); -- cgit v1.2.3