diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-06-12 18:26:59 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-06-15 15:51:43 +0200 |
| commit | a91e705dfd9b7358bf24e02312dfb06ab3e6848d (patch) | |
| tree | 28c25cdf44b19d56b47447be4fa1991d09424482 /vis-lua.c | |
| parent | 9e0c192423a165e735441279e0ee6af7cb0353ef (diff) | |
| download | vis-a91e705dfd9b7358bf24e02312dfb06ab3e6848d.tar.gz vis-a91e705dfd9b7358bf24e02312dfb06ab3e6848d.tar.xz | |
view: rename view_cursors_count
Diffstat (limited to 'vis-lua.c')
| -rw-r--r-- | vis-lua.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |
