fix(ui): activating all ext capabilities without remote UI #28555

This commit is contained in:
luukvbaal 2024-04-29 02:51:33 +02:00 committed by GitHub
parent 05be00a2d1
commit ab1c2220f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -198,7 +198,7 @@ void ui_refresh(void)
int height = INT_MAX;
bool ext_widgets[kUIExtCount];
for (UIExtension i = 0; (int)i < kUIExtCount; i++) {
ext_widgets[i] = true;
ext_widgets[i] = ui_active();
}
bool inclusive = ui_override();

View File

@ -156,8 +156,11 @@ describe('vim.ui_attach', function()
}, actual, vim.inspect(actual))
end)
it('ui_refresh() works without remote UI', function()
it('ui_refresh() activates correct capabilities without remote UI', function()
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)')
n.api.nvim_set_option_value('cmdheight', 1, {})
screen:attach()