From 9e0c192423a165e735441279e0ee6af7cb0353ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Jun 2017 18:26:27 +0200 Subject: view: rename view_cursors_next --- vis-lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vis-lua.c') 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; -- cgit v1.2.3