aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-06-12 18:26:59 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-06-15 15:51:43 +0200
commita91e705dfd9b7358bf24e02312dfb06ab3e6848d (patch)
tree28c25cdf44b19d56b47447be4fa1991d09424482 /vis-lua.c
parent9e0c192423a165e735441279e0ee6af7cb0353ef (diff)
downloadvis-a91e705dfd9b7358bf24e02312dfb06ab3e6848d.tar.gz
vis-a91e705dfd9b7358bf24e02312dfb06ab3e6848d.tar.xz
view: rename view_cursors_count
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vis-lua.c b/vis-lua.c
index 2788be5..a78a866 100644
--- a/vis-lua.c
+++ b/vis-lua.c
@@ -79,7 +79,7 @@ static void window_status_update(Vis *vis, Win *win) {
vis_macro_recording(vis) ? " @": "");
left_count++;
- int cursor_count = view_cursors_count(view);
+ int cursor_count = view_selections_count(view);
if (cursor_count > 1) {
Cursor *c = view_selections_primary_get(view);
int cursor_number = view_cursors_number(c) + 1;
@@ -1727,7 +1727,7 @@ static const struct luaL_Reg window_funcs[] = {
static int window_cursors_index(lua_State *L) {
View *view = obj_ref_check(L, 1, VIS_LUA_TYPE_CURSORS);
size_t index = luaL_checkunsigned(L, 2);
- size_t count = view_cursors_count(view);
+ 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)) {
@@ -1743,7 +1743,7 @@ err:
static int window_cursors_len(lua_State *L) {
View *view = obj_ref_check(L, 1, VIS_LUA_TYPE_CURSORS);
- lua_pushunsigned(L, view_cursors_count(view));
+ lua_pushunsigned(L, view_selections_count(view));
return 1;
}