diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-12 16:08:22 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-12 17:04:05 -0700 |
commit | 589f612adfea22b688618fa90e011f5494ca5204 (patch) | |
tree | 05d55149f75fc76e5045ccccabf242e1955ca5fd /src/nvim/aucmd.c | |
parent | 44d45e29ea4a632e66ac63d25d355a5a4c7178bc (diff) | |
download | rneovim-589f612adfea22b688618fa90e011f5494ca5204.tar.gz rneovim-589f612adfea22b688618fa90e011f5494ca5204.tar.bz2 rneovim-589f612adfea22b688618fa90e011f5494ca5204.zip |
rename: UIAttach/UIDetach => UIEnter/UILeave
"enter"/"leave" is more conventional for Vim events, and
"attach"/"detach" distinction does not gain much.
Diffstat (limited to 'src/nvim/aucmd.c')
-rw-r--r-- | src/nvim/aucmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/aucmd.c b/src/nvim/aucmd.c index 5188f96a5d..a9a7d834a4 100644 --- a/src/nvim/aucmd.c +++ b/src/nvim/aucmd.c @@ -13,7 +13,7 @@ # include "aucmd.c.generated.h" #endif -void do_autocmd_uiattach(uint64_t chanid, bool attached) +void do_autocmd_uienter(uint64_t chanid, bool attached) { static bool recursive = false; @@ -26,7 +26,7 @@ void do_autocmd_uiattach(uint64_t chanid, bool attached) assert(chanid < VARNUMBER_MAX); tv_dict_add_nr(dict, S_LEN("chan"), (varnumber_T)chanid); tv_dict_set_keys_readonly(dict); - apply_autocmds(attached ? EVENT_UIATTACH : EVENT_UIDETACH, + apply_autocmds(attached ? EVENT_UIENTER : EVENT_UILEAVE, NULL, NULL, false, curbuf); tv_dict_clear(dict); |