Skip to content

Commit 87f79d3

Browse files
committed
Fix islist deprecation warning
1 parent 798cd05 commit 87f79d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/neoclip/settings.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ local function check_deprecated_entries()
9292
end
9393

9494
local function is_dict_like (tbl)
95-
return type(tbl) == 'table' and not vim.tbl_islist(tbl)
95+
local islist = vim.islist or vim.tbl_islist
96+
return type(tbl) == 'table' and not islist(tbl)
9697
end
9798

9899
local function setup(opts, subsettings)

0 commit comments

Comments
 (0)