mirror of
https://github.com/neovim/neovim.git
synced 2025-12-27 16:49:13 +00:00
docs: made can_merge private (#15138)
This commit is contained in:
@@ -200,6 +200,8 @@ function vim.tbl_isempty(t)
|
|||||||
return next(t) == nil
|
return next(t) == nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- we only merge empty tables or tables that are not a list
|
||||||
|
--@private
|
||||||
local function can_merge(v)
|
local function can_merge(v)
|
||||||
return type(v) == "table" and (vim.tbl_isempty(v) or not vim.tbl_islist(v))
|
return type(v) == "table" and (vim.tbl_isempty(v) or not vim.tbl_islist(v))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user