diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-12 18:43:03 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:43 +0200 |
| commit | 0001a83bb7f7b30840df2f2ec321e2c2d9507053 (patch) | |
| tree | 3011b4b21654ad4195c45d773b9a5e432e573a09 /vis-modes.c | |
| parent | fcb47fc938ac36e14565e60b9138c59ea9c67658 (diff) | |
| download | vis-0001a83bb7f7b30840df2f2ec321e2c2d9507053.tar.gz vis-0001a83bb7f7b30840df2f2ec321e2c2d9507053.tar.xz | |
view: rename view_cursors
Diffstat (limited to 'vis-modes.c')
| -rw-r--r-- | vis-modes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vis-modes.c b/vis-modes.c index d9a5091..c396b4a 100644 --- a/vis-modes.c +++ b/vis-modes.c @@ -145,7 +145,7 @@ static void vis_mode_normal_enter(Vis *vis, Mode *old) { return; if (vis->autoindent && strcmp(vis->key_prev, "<Enter>") == 0) { Text *txt = vis->win->file->text; - for (Cursor *c = view_cursors(vis->win->view); c; c = view_selections_next(c)) { + for (Cursor *c = view_selections(vis->win->view); c; c = view_selections_next(c)) { size_t pos = view_cursors_pos(c); size_t start = text_line_start(txt, pos); size_t end = text_line_end(txt, pos); @@ -185,14 +185,14 @@ static void vis_mode_operator_input(Vis *vis, const char *str, size_t len) { static void vis_mode_visual_enter(Vis *vis, Mode *old) { if (!old->visual) { - for (Cursor *c = view_cursors(vis->win->view); c; c = view_selections_next(c)) + for (Cursor *c = view_selections(vis->win->view); c; c = view_selections_next(c)) view_selections_anchor(c); } } static void vis_mode_visual_line_enter(Vis *vis, Mode *old) { if (!old->visual) { - for (Cursor *c = view_cursors(vis->win->view); c; c = view_selections_next(c)) + for (Cursor *c = view_selections(vis->win->view); c; c = view_selections_next(c)) view_selections_anchor(c); } if (!vis->action.op) |
