diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-12 18:26:59 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:43 +0200 |
| commit | a91e705dfd9b7358bf24e02312dfb06ab3e6848d (patch) | |
| tree | 28c25cdf44b19d56b47447be4fa1991d09424482 /vis.c | |
| parent | 9e0c192423a165e735441279e0ee6af7cb0353ef (diff) | |
| download | vis-a91e705dfd9b7358bf24e02312dfb06ab3e6848d.tar.gz vis-a91e705dfd9b7358bf24e02312dfb06ab3e6848d.tar.xz | |
view: rename view_cursors_count
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]); |
