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:
@@ -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
|
||||
|
Reference in New Issue
Block a user