aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:43:03 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commit0001a83bb7f7b30840df2f2ec321e2c2d9507053 (patch)
tree3011b4b21654ad4195c45d773b9a5e432e573a09 /vis-lua.c
parentfcb47fc938ac36e14565e60b9138c59ea9c67658 (diff)
downloadvis-0001a83bb7f7b30840df2f2ec321e2c2d9507053.tar.gz
vis-0001a83bb7f7b30840df2f2ec321e2c2d9507053.tar.xz
view: rename view_cursors
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 daf7d30..f70a356 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -1607,7 +1607,7 @@ static int window_cursors_iterator_next(lua_State *L) {
static int window_cursors_iterator(lua_State *L) {
Win *win = obj_ref_check(L, 1, VIS_LUA_TYPE_WINDOW);
Cursor **handle = lua_newuserdata(L, sizeof *handle);
- *handle = view_cursors(win->view);
+ *handle = view_selections(win->view);
lua_pushcclosure(L, window_cursors_iterator_next, 1);
return 1;
}
@@ -1730,7 +1730,7 @@ static int window_cursors_index(lua_State *L) {
size_t count = view_selections_count(view);
if (index == 0 || index > count)
goto err;
- for (Cursor *c = view_cursors(view); c; c = view_selections_next(c)) {
+ for (Cursor *c = view_selections(view); c; c = view_selections_next(c)) {
if (!--index) {
obj_lightref_new(L, c, VIS_LUA_TYPE_CURSOR);
return 1;