mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
fix(ui): set 'cmdheight' to zero for all open tabpages
Problem: Enabling ext_messages claims to set 'cmdheight' to zero, but only does so for the current tabpage. Solution: Set stored 'cmdheight' value to zero for all tabpages.
This commit is contained in:
@@ -163,6 +163,13 @@ describe('vim.ui_attach', function()
|
||||
screen:attach()
|
||||
eq(1, n.api.nvim_get_option_value('cmdheight', {}))
|
||||
end)
|
||||
|
||||
it("ui_refresh() sets 'cmdheight' for all open tabpages with ext_messages", function()
|
||||
exec_lua('vim.cmd.tabnew()')
|
||||
exec_lua('vim.ui_attach(ns, { ext_messages = true }, on_event)')
|
||||
exec_lua('vim.cmd.tabnext()')
|
||||
eq(0, n.api.nvim_get_option_value('cmdheight', {}))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('vim.ui_attach', function()
|
||||
|
Reference in New Issue
Block a user