inspect: support vim.empty_dict()

pull/3/head
Björn Linse 4 years ago
parent 6b5ac2599c
commit 0223942731

@ -244,6 +244,12 @@ function Inspector:putTable(t)
local nonSequentialKeys, nonSequentialKeysLength, sequenceLength = getNonSequentialKeys(t)
local mt = getmetatable(t)
if (vim and vim._empty_dict_mt
and sequenceLength == 0 and nonSequentialKeysLength == 0
and mt == vim._empty_dict_mt) then
self:puts(tostring(t))
return
end
self:puts('{')
self:down(function()

Loading…
Cancel
Save