Created
September 11, 2015 09:05
-
-
Save h-east/9b0764b5c30e1583466b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 917ffa98aeeb src/eval.c | |
--- a/src/eval.c Wed Sep 09 22:45:04 2015 +0200 | |
+++ b/src/eval.c Fri Sep 11 16:17:55 2015 +0900 | |
@@ -12446,6 +12446,9 @@ | |
* otherwise the window is not valid. */ | |
if (switch_win(&oldcurwin, &oldtabpage, win, tp, TRUE) == OK) | |
{ | |
+#ifdef FEAT_AUTOCMD | |
+ unblock_autocmds(); | |
+#endif | |
if (*varname == '&') /* window-local-option */ | |
{ | |
if (get_option_tv(&varname, rettv, 1) == OK) | |
@@ -12463,6 +12466,9 @@ | |
done = TRUE; | |
} | |
} | |
+#ifdef FEAT_AUTOCMD | |
+ block_autocmds(); | |
+#endif | |
} | |
/* restore previous notion of curwin */ | |
@@ -17622,6 +17628,9 @@ | |
if (switch_win(&save_curwin, &save_curtab, win, tp, TRUE) == OK) | |
#endif | |
{ | |
+#ifdef FEAT_AUTOCMD | |
+ unblock_autocmds(); | |
+#endif | |
if (*varname == '&') | |
{ | |
long numval; | |
@@ -17645,6 +17654,9 @@ | |
vim_free(winvarname); | |
} | |
} | |
+#ifdef FEAT_AUTOCMD | |
+ block_autocmds(); | |
+#endif | |
} | |
#ifdef FEAT_WINDOWS | |
restore_win(save_curwin, save_curtab, TRUE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment