diff options
author | James McCoy <jamessan@jamessan.com> | 2016-11-14 10:19:06 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-11-14 14:16:40 -0500 |
commit | 9d2985ecba47968c54590203e89a6614e61020d3 (patch) | |
tree | c1cc92ede29aea398c9c1f1ae2072fa201a2ae72 /src/nvim/main.c | |
parent | 4539d867d491c9ca748f3d2de505092c4769824d (diff) | |
download | rneovim-9d2985ecba47968c54590203e89a6614e61020d3.tar.gz rneovim-9d2985ecba47968c54590203e89a6614e61020d3.tar.bz2 rneovim-9d2985ecba47968c54590203e89a6614e61020d3.zip |
vim-patch:7.4.1658
Problem: A plugin does not know when VimEnter autocommands were already
triggered.
Solution: Add the v:vim_did_enter variable.
https://github.com/vim/vim/commit/1473551a4457d4920b235eeeb9f279e196ee7225
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index ffd9353252..159ea03162 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -511,6 +511,7 @@ int main(int argc, char **argv) if (p_im) need_start_insertmode = TRUE; + set_vim_var_nr(VV_VIM_DID_ENTER, 1L); apply_autocmds(EVENT_VIMENTER, NULL, NULL, FALSE, curbuf); TIME_MSG("VimEnter autocommands"); |