0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.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)
This commit is contained in:
Bram Moolenaar
2014-09-19 14:26:36 +02:00
parent 714db3bb81
commit 5d2bae8b1c
4 changed files with 55 additions and 54 deletions

View File

@@ -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