diff options
author | Folke Lemaitre <folke.lemaitre@gmail.com> | 2021-07-19 23:23:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 14:23:28 -0700 |
commit | 9358aa04c42650551833569a0e82951dfe6268d1 (patch) | |
tree | 0b2cb0c64247f48aeb2a70a7e941dd291da00d86 /runtime/lua/vim/shared.lua | |
parent | 4ed2d4fd666294c21477bb962f3bf655bcc71a91 (diff) | |
download | rneovim-9358aa04c42650551833569a0e82951dfe6268d1.tar.gz rneovim-9358aa04c42650551833569a0e82951dfe6268d1.tar.bz2 rneovim-9358aa04c42650551833569a0e82951dfe6268d1.zip |
docs: made can_merge private (#15138)
Diffstat (limited to 'runtime/lua/vim/shared.lua')
-rw-r--r-- | runtime/lua/vim/shared.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/shared.lua b/runtime/lua/vim/shared.lua index f7f37e089f..33c2b2c46c 100644 --- a/runtime/lua/vim/shared.lua +++ b/runtime/lua/vim/shared.lua @@ -200,6 +200,8 @@ function vim.tbl_isempty(t) return next(t) == nil end +--- we only merge empty tables or tables that are not a list +--@private local function can_merge(v) return type(v) == "table" and (vim.tbl_isempty(v) or not vim.tbl_islist(v)) end |