diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-07-05 18:08:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 18:08:40 +0200 |
commit | e7d49dcfb3058c2628874b1c7e8dfdb3944bafd9 (patch) | |
tree | b5712993e7e68ffce7b9a1193b01a5f6f6784fa8 /test/functional/ui/screen.lua | |
parent | 0d82aaf5866b954ab0fe4831df499a4713eeae35 (diff) | |
parent | 399eb49bafcbd4bf60ff32e339a1f673e75acf2b (diff) | |
download | rneovim-e7d49dcfb3058c2628874b1c7e8dfdb3944bafd9.tar.gz rneovim-e7d49dcfb3058c2628874b1c7e8dfdb3944bafd9.tar.bz2 rneovim-e7d49dcfb3058c2628874b1c7e8dfdb3944bafd9.zip |
Merge pull request #10293 from bfredl/hi_msg
highlight: show "hi Group" message correctly when not using the screen
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index 0367e85028..f1254b68f6 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -1194,6 +1194,10 @@ function Screen:render(headers, attr_state, preview) return rv end +local remove_all_metatables = function(item, path) + if path[#path] ~= inspect.METATABLE then return item end +end + function Screen:print_snapshot(attrs, ignore) attrs = attrs or self._default_attr_ids if ignore == nil then @@ -1247,8 +1251,8 @@ function Screen:print_snapshot(attrs, ignore) io.stdout:write( "]]"..attrstr) for _, k in ipairs(ext_keys) do if ext_state[k] ~= nil then - -- TODO(bfredl): improve formating, remove ext metatables - io.stdout:write(", "..k.."="..inspect(ext_state[k])) + -- TODO(bfredl): improve formatting + io.stdout:write(", "..k.."="..inspect(ext_state[k],{process=remove_all_metatables})) end end print((keys and "}" or ")").."\n") |