diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-12 18:26:27 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:43 +0200 |
| commit | 9e0c192423a165e735441279e0ee6af7cb0353ef (patch) | |
| tree | eb630e7a8079cce888cc1db260af34d35ba19b28 /vis-modes.c | |
| parent | 88ae50f75f8606269269bbf3d8239893befdb0af (diff) | |
| download | vis-9e0c192423a165e735441279e0ee6af7cb0353ef.tar.gz vis-9e0c192423a165e735441279e0ee6af7cb0353ef.tar.xz | |
view: rename view_cursors_next
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 87a61a7..d9a5091 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_cursors_next(c)) { + for (Cursor *c = view_cursors(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_cursors_next(c)) + for (Cursor *c = view_cursors(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_cursors_next(c)) + for (Cursor *c = view_cursors(vis->win->view); c; c = view_selections_next(c)) view_selections_anchor(c); } if (!vis->action.op) |
