mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(ui): activating all ext capabilities without remote UI #28555
This commit is contained in:
parent
05be00a2d1
commit
ab1c2220f0
@ -198,7 +198,7 @@ void ui_refresh(void)
|
|||||||
int height = INT_MAX;
|
int height = INT_MAX;
|
||||||
bool ext_widgets[kUIExtCount];
|
bool ext_widgets[kUIExtCount];
|
||||||
for (UIExtension i = 0; (int)i < kUIExtCount; i++) {
|
for (UIExtension i = 0; (int)i < kUIExtCount; i++) {
|
||||||
ext_widgets[i] = true;
|
ext_widgets[i] = ui_active();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool inclusive = ui_override();
|
bool inclusive = ui_override();
|
||||||
|
@ -156,8 +156,11 @@ describe('vim.ui_attach', function()
|
|||||||
}, actual, vim.inspect(actual))
|
}, actual, vim.inspect(actual))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('ui_refresh() works without remote UI', function()
|
it('ui_refresh() activates correct capabilities without remote UI', function()
|
||||||
screen:detach()
|
screen:detach()
|
||||||
|
exec_lua('vim.ui_attach(ns, { ext_cmdline = true }, on_event)')
|
||||||
|
eq(1, n.api.nvim_get_option_value('cmdheight', {}))
|
||||||
|
exec_lua('vim.ui_detach(ns)')
|
||||||
exec_lua('vim.ui_attach(ns, { ext_messages = true }, on_event)')
|
exec_lua('vim.ui_attach(ns, { ext_messages = true }, on_event)')
|
||||||
n.api.nvim_set_option_value('cmdheight', 1, {})
|
n.api.nvim_set_option_value('cmdheight', 1, {})
|
||||||
screen:attach()
|
screen:attach()
|
||||||
|
Loading…
Reference in New Issue
Block a user