mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
fix(ui): update ext_ui widgets when attaching non-remote UI
Problem: Updating internalized UI capabilities is postponed until a
remote UI attaches.
Solution: Always update active UI widgets in ui_refresh().
This commit is contained in:
@@ -155,6 +155,14 @@ describe('vim.ui_attach', function()
|
||||
},
|
||||
}, actual, vim.inspect(actual))
|
||||
end)
|
||||
|
||||
it('ui_refresh() works without remote UI', function()
|
||||
screen:detach()
|
||||
exec_lua('vim.ui_attach(ns, { ext_messages = true }, on_event)')
|
||||
n.api.nvim_set_option_value('cmdheight', 1, {})
|
||||
screen:attach()
|
||||
eq(1, n.api.nvim_get_option_value('cmdheight', {}))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('vim.ui_attach', function()
|
||||
|
||||
Reference in New Issue
Block a user