aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-07-23 07:16:41 +0800
committerGitHub <noreply@github.com>2023-07-23 07:16:41 +0800
commita8cfdf43bc6226e32679ec59769ea3e48ca26193 (patch)
tree6454018d5d3067dea1d6436037300d2870105ac0 /src/nvim/api/vim.c
parentad95b369856969ccb05b3f92b24d7262b4de3d71 (diff)
downloadrneovim-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/vim.c')
-rw-r--r--src/nvim/api/vim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index b1e472aa8c..8738b3e38e 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -305,6 +305,7 @@ void nvim_feedkeys(String keys, String mode, Boolean escape_ks)
Integer nvim_input(String keys)
FUNC_API_SINCE(1) FUNC_API_FAST
{
+ may_trigger_vim_suspend_resume(false);
return (Integer)input_enqueue(keys);
}
@@ -334,6 +335,8 @@ void nvim_input_mouse(String button, String action, String modifier, Integer gri
Integer col, Error *err)
FUNC_API_SINCE(6) FUNC_API_FAST
{
+ may_trigger_vim_suspend_resume(false);
+
if (button.data == NULL || action.data == NULL) {
goto error;
}