vim-patch: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)

https://code.google.com/p/vim/source/detail?r=v7-4-446
This commit is contained in:
Pavel Platto
2015-01-20 20:03:39 +02:00
parent da43f70ba7
commit 85f342a110
4 changed files with 30 additions and 33 deletions

View File

@@ -489,7 +489,8 @@ void free_all_mem(void)
return;
entered = true;
block_autocmds(); /* don't want to trigger autocommands here */
// Don't want to trigger autocommands from here on.
block_autocmds();
/* Close all tabs and windows. Reset 'equalalways' to avoid redraws. */
p_ea = FALSE;