aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:26:27 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commit9e0c192423a165e735441279e0ee6af7cb0353ef (patch)
treeeb630e7a8079cce888cc1db260af34d35ba19b28 /vis-lua.c
parent88ae50f75f8606269269bbf3d8239893befdb0af (diff)
downloadvis-9e0c192423a165e735441279e0ee6af7cb0353ef.tar.gz
vis-9e0c192423a165e735441279e0ee6af7cb0353ef.tar.xz
view: rename view_cursors_next
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 67eb39f..2788be5 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -1595,7 +1595,7 @@ static int window_cursors_iterator_next(lua_State *L) {
Cursor *cur = obj_lightref_new(L, *handle, VIS_LUA_TYPE_CURSOR);
if (!cur)
return 0;
- *handle = view_cursors_next(cur);
+ *handle = view_selections_next(cur);
return 1;
}
@@ -1730,7 +1730,7 @@ static int window_cursors_index(lua_State *L) {
size_t count = view_cursors_count(view);
if (index == 0 || index > count)
goto err;
- for (Cursor *c = view_cursors(view); c; c = view_cursors_next(c)) {
+ for (Cursor *c = view_cursors(view); c; c = view_selections_next(c)) {
if (!--index) {
obj_lightref_new(L, c, VIS_LUA_TYPE_CURSOR);
return 1;