mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
fix(events): trigger VimResume on next UI request (#24426)
This commit is contained in:
@@ -215,6 +215,8 @@ void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height, Dictiona
|
||||
|
||||
pmap_put(uint64_t)(&connected_uis, channel_id, ui);
|
||||
ui_attach_impl(ui, channel_id);
|
||||
|
||||
may_trigger_vim_suspend_resume(false);
|
||||
}
|
||||
|
||||
/// @deprecated
|
||||
@@ -237,6 +239,10 @@ void nvim_ui_set_focus(uint64_t channel_id, Boolean gained, Error *error)
|
||||
return;
|
||||
}
|
||||
|
||||
if (gained) {
|
||||
may_trigger_vim_suspend_resume(false);
|
||||
}
|
||||
|
||||
do_autocmd_focusgained((bool)gained);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user