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-lua.c | |
| parent | 88ae50f75f8606269269bbf3d8239893befdb0af (diff) | |
| download | vis-9e0c192423a165e735441279e0ee6af7cb0353ef.tar.gz vis-9e0c192423a165e735441279e0ee6af7cb0353ef.tar.xz | |
view: rename view_cursors_next
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
