Mercurial > vim
comparison src/misc2.c @ 6222:63121fdd093f v7.4.446
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 19 Sep 2014 14:26:36 +0200 |
parents | 18ac55444b37 |
children | 96761b6789f6 |
comparison
equal
deleted
inserted
replaced
6221:f3c980ab39a3 | 6222:63121fdd093f |
---|---|
1038 if (entered) | 1038 if (entered) |
1039 return; | 1039 return; |
1040 entered = TRUE; | 1040 entered = TRUE; |
1041 | 1041 |
1042 # ifdef FEAT_AUTOCMD | 1042 # ifdef FEAT_AUTOCMD |
1043 block_autocmds(); /* don't want to trigger autocommands here */ | 1043 /* Don't want to trigger autocommands from here on. */ |
1044 block_autocmds(); | |
1044 # endif | 1045 # endif |
1045 | 1046 |
1046 # ifdef FEAT_WINDOWS | 1047 # ifdef FEAT_WINDOWS |
1047 /* Close all tabs and windows. Reset 'equalalways' to avoid redraws. */ | 1048 /* Close all tabs and windows. Reset 'equalalways' to avoid redraws. */ |
1048 p_ea = FALSE; | 1049 p_ea = FALSE; |