mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
lua: metatable for empty dict value
This commit is contained in:
@@ -244,6 +244,11 @@ function Inspector:putTable(t)
|
||||
|
||||
local nonSequentialKeys, nonSequentialKeysLength, sequenceLength = getNonSequentialKeys(t)
|
||||
local mt = getmetatable(t)
|
||||
if (vim and sequenceLength == 0 and nonSequentialKeysLength == 0
|
||||
and mt == vim._empty_dict_mt) then
|
||||
self:puts(tostring(t))
|
||||
return
|
||||
end
|
||||
|
||||
self:puts('{')
|
||||
self:down(function()
|
||||
|
||||
Reference in New Issue
Block a user