diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-04-21 15:19:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-04-21 17:08:07 +0200 |
commit | d9d890562e43493c999f8a6ff2b848959686f5b6 (patch) | |
tree | e2f751afe697c4e95a37b00b2d75690ca173122d /runtime/lua/_vim9script.lua | |
parent | 032df963bb3fb0b5652e1817e9f4da986996fa6d (diff) | |
download | rneovim-d9d890562e43493c999f8a6ff2b848959686f5b6.tar.gz rneovim-d9d890562e43493c999f8a6ff2b848959686f5b6.tar.bz2 rneovim-d9d890562e43493c999f8a6ff2b848959686f5b6.zip |
refactor(lua): rename tbl_islist => islist
ref #24572
Diffstat (limited to 'runtime/lua/_vim9script.lua')
-rw-r--r-- | runtime/lua/_vim9script.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/lua/_vim9script.lua b/runtime/lua/_vim9script.lua index ca0e913d51..23c078cb87 100644 --- a/runtime/lua/_vim9script.lua +++ b/runtime/lua/_vim9script.lua @@ -82,7 +82,7 @@ local vim9 = (function() end M.index = function(obj, idx) - if vim.tbl_islist(obj) then + if vim.islist(obj) then if idx < 0 then return obj[#obj + idx + 1] else @@ -127,7 +127,7 @@ local vim9 = (function() assert(type(finish) == 'number') local slicer - if vim.tbl_islist(obj) then + if vim.islist(obj) then slicer = vim.list_slice elseif type(obj) == 'string' then slicer = string.sub @@ -168,7 +168,7 @@ local vim9 = (function() end M.iter = function(expr) - if vim.tbl_islist(expr) then + if vim.islist(expr) then return ipairs(expr) else return pairs(expr) @@ -234,7 +234,7 @@ vim9['convert'] = (function() elseif type(val) == 'table' then if vim.tbl_isempty(val) then return vim.empty_dict() - elseif vim.tbl_islist(val) then + elseif vim.islist(val) then error(string.format('Cannot pass list to dictionary? %s', vim.inspect(val))) else return val @@ -280,7 +280,7 @@ vim9['fn'] = (function() error("haven't written this code yet") end - if vim.tbl_islist(right) then + if vim.islist(right) then vim.list_extend(left, right) return left else |