aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-21 10:00:35 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-07-05 15:52:59 +0200
commit399eb49bafcbd4bf60ff32e339a1f673e75acf2b (patch)
treeb5712993e7e68ffce7b9a1193b01a5f6f6784fa8 /test/functional/ui/screen.lua
parent0d82aaf5866b954ab0fe4831df499a4713eeae35 (diff)
downloadrneovim-399eb49bafcbd4bf60ff32e339a1f673e75acf2b.tar.gz
rneovim-399eb49bafcbd4bf60ff32e339a1f673e75acf2b.tar.bz2
rneovim-399eb49bafcbd4bf60ff32e339a1f673e75acf2b.zip
highlight: show "hi Group" message correctly when not using the screen
ext_message doesn't set msg_col. Add a space and let client deal with wrapping. When using silent redirect show the unwrapped message form. Removed check is already part of msg_advance()
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua8
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")