diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-04-21 09:16:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 09:16:16 -0700 |
commit | f694d020c576fb037eb92bae3bbf03a69d8686b6 (patch) | |
tree | c39982ecde44ac2b01111149f81bee8b5a284f40 /runtime/lua/_vim9script.lua | |
parent | 032df963bb3fb0b5652e1817e9f4da986996fa6d (diff) | |
parent | 5c8dfb0e379cd4ae8de418e7aa554dbc5ab7f236 (diff) | |
download | rneovim-f694d020c576fb037eb92bae3bbf03a69d8686b6.tar.gz rneovim-f694d020c576fb037eb92bae3bbf03a69d8686b6.tar.bz2 rneovim-f694d020c576fb037eb92bae3bbf03a69d8686b6.zip |
Merge #28440 rename tbl_islist, tbl_isarray
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 |