diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-09-19 14:26:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-09-19 14:26:36 +0200 |
commit | 5d2bae8b1c2bb8059010ea604e092de9cf3c1baf (patch) | |
tree | 4e08dc4660c82fa64e4da92e50e7e99698119d25 /src/misc2.c | |
parent | 714db3bb819bb7f9f52270f2352b274bba3a9ff4 (diff) | |
download | vim-git-5d2bae8b1c2bb8059010ea604e092de9cf3c1baf.tar.gz |
updated for version 7.4.446v7.4.446
Problem: In some situations, when setting up an environment to trigger an
autocommand, the environment is not properly restored.
Solution: Check the return value of switch_win() and call restore_win()
always. (Daniel Hahler)
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/misc2.c b/src/misc2.c index 1f8878f67..1fe0e87cf 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -1040,7 +1040,8 @@ free_all_mem() entered = TRUE; # ifdef FEAT_AUTOCMD - block_autocmds(); /* don't want to trigger autocommands here */ + /* Don't want to trigger autocommands from here on. */ + block_autocmds(); # endif # ifdef FEAT_WINDOWS |