diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-07-23 07:16:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-23 07:16:41 +0800 |
commit | a8cfdf43bc6226e32679ec59769ea3e48ca26193 (patch) | |
tree | 6454018d5d3067dea1d6436037300d2870105ac0 /src/nvim/api/ui.c | |
parent | ad95b369856969ccb05b3f92b24d7262b4de3d71 (diff) | |
download | rneovim-a8cfdf43bc6226e32679ec59769ea3e48ca26193.tar.gz rneovim-a8cfdf43bc6226e32679ec59769ea3e48ca26193.tar.bz2 rneovim-a8cfdf43bc6226e32679ec59769ea3e48ca26193.zip |
fix(events): trigger VimResume on next UI request (#24426)
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r-- | src/nvim/api/ui.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index 861ce100cd..9fa5a89407 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -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); } |