diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2024-04-27 01:00:55 +0200 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2024-04-27 01:00:55 +0200 |
commit | b8c1b36061f443f82f34f3d4fe7807fc33edefa6 (patch) | |
tree | 2096cfd85592f1043a09312e63d15bb8ac3b576a /test/functional/lua/ui_event_spec.lua | |
parent | 7626f431d84fc3a6eb82d0d23d436e3e31e991ce (diff) | |
download | rneovim-b8c1b36061f443f82f34f3d4fe7807fc33edefa6.tar.gz rneovim-b8c1b36061f443f82f34f3d4fe7807fc33edefa6.tar.bz2 rneovim-b8c1b36061f443f82f34f3d4fe7807fc33edefa6.zip |
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.
Diffstat (limited to 'test/functional/lua/ui_event_spec.lua')
-rw-r--r-- | test/functional/lua/ui_event_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/lua/ui_event_spec.lua b/test/functional/lua/ui_event_spec.lua index 60f8706e2d..ae39172145 100644 --- a/test/functional/lua/ui_event_spec.lua +++ b/test/functional/lua/ui_event_spec.lua @@ -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() |