aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:26:09 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commit88ae50f75f8606269269bbf3d8239893befdb0af (patch)
tree6d0816f7be4bd692ff396e925992ee15769cf3c9 /main.c
parent5b1b6403955b97cce1fd22a8f5a6f9df72399c4b (diff)
downloadvis-88ae50f75f8606269269bbf3d8239893befdb0af.tar.gz
vis-88ae50f75f8606269269bbf3d8239893befdb0af.tar.xz
view: rename view_cursors_prev
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 72a3df3..ace4d09 100644
--- a/main.c
+++ b/main.c
@@ -1270,7 +1270,7 @@ static const char *cursors_new(Vis *vis, const char *keys, const Arg *arg) {
Cursor *cursor_new = view_selections_new(view, newpos);
if (!cursor_new) {
if (arg->i == -1)
- cursor_new = view_cursors_prev(cursor);
+ cursor_new = view_selections_prev(cursor);
else if (arg->i == +1)
cursor_new = view_cursors_next(cursor);
}
@@ -1473,7 +1473,7 @@ static const char *cursors_navigate(Vis *vis, const char *keys, const Arg *arg)
if (!c)
c = view_cursors(view);
} else {
- c = view_cursors_prev(c);
+ c = view_selections_prev(c);
if (!c) {
c = view_cursors(view);
for (Cursor *n = c; n; n = view_cursors_next(n))