diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-11-30 22:13:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 22:13:50 -0500 |
commit | 828bf128a64466f254629b102e283af35666cd05 (patch) | |
tree | 6cda5c2df8d799d87d86dcfabc595e2737b8feda /src/nvim/channel.c | |
parent | 2635b77dba6fa218871441fa3380860405bf9240 (diff) | |
parent | 980c68d0362c3ca099c0facef2d08efede76aabf (diff) | |
download | rneovim-828bf128a64466f254629b102e283af35666cd05.tar.gz rneovim-828bf128a64466f254629b102e283af35666cd05.tar.bz2 rneovim-828bf128a64466f254629b102e283af35666cd05.zip |
Merge pull request #15840 from vimpostor/vim-8.2.3430
vim-patch:8.2.{3430,3434,3462,3463,3555,3609,3610}: ModeChanged autocmd
Diffstat (limited to 'src/nvim/channel.c')
-rw-r--r-- | src/nvim/channel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/channel.c b/src/nvim/channel.c index 9662f6205f..a662f3a951 100644 --- a/src/nvim/channel.c +++ b/src/nvim/channel.c @@ -10,6 +10,7 @@ #include "nvim/event/socket.h" #include "nvim/fileio.h" #include "nvim/lua/executor.h" +#include "nvim/misc1.h" #include "nvim/msgpack_rpc/channel.h" #include "nvim/msgpack_rpc/server.h" #include "nvim/os/shell.h" @@ -821,7 +822,8 @@ static void set_info_event(void **argv) Channel *chan = argv[0]; event_T event = (event_T)(ptrdiff_t)argv[1]; - dict_T *dict = get_vim_var_dict(VV_EVENT); + save_v_event_T save_v_event; + dict_T *dict = get_v_event(&save_v_event); Dictionary info = channel_info(chan->id); typval_T retval; (void)object_to_vim(DICTIONARY_OBJ(info), &retval, NULL); @@ -829,7 +831,7 @@ static void set_info_event(void **argv) apply_autocmds(event, NULL, NULL, false, curbuf); - tv_dict_clear(dict); + restore_v_event(dict, &save_v_event); api_free_dictionary(info); channel_decref(chan); } |