summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-09-29 12:16:41 +0000
committerBram Moolenaar <Bram@vim.org>2007-09-29 12:16:41 +0000
commit78ab331e0d8a76f553830f0347ac27311e4dc0f8 (patch)
treedf1c313bb5c0cae5db59d08f852971a0c10fd89c /src/ex_getln.c
parent51b8436f09c0ea855758b2086d92f838acab7631 (diff)
updated for version 7.1-125v7.1.125
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 4a311b4c1c..f417619894 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -5925,7 +5925,7 @@ ex_window()
# ifdef FEAT_AUTOCMD
/* Don't execute autocommands while creating the window. */
- ++autocmd_block;
+ block_autocmds();
# endif
/* don't use a new tab page */
cmdmod.tab = 0;
@@ -5934,6 +5934,9 @@ ex_window()
if (win_split((int)p_cwh, WSP_BOT) == FAIL)
{
beep_flush();
+# ifdef FEAT_AUTOCMD
+ unblock_autocmds();
+# endif
return K_IGNORE;
}
cmdwin_type = ccline.cmdfirstc;
@@ -5956,7 +5959,7 @@ ex_window()
# ifdef FEAT_AUTOCMD
/* Do execute autocommands for setting the filetype (load syntax). */
- --autocmd_block;
+ unblock_autocmds();
# endif
/* Showing the prompt may have set need_wait_return, reset it. */
@@ -6110,7 +6113,7 @@ ex_window()
# ifdef FEAT_AUTOCMD
/* Don't execute autocommands while deleting the window. */
- ++autocmd_block;
+ block_autocmds();
# endif
wp = curwin;
bp = curbuf;
@@ -6122,7 +6125,7 @@ ex_window()
win_size_restore(&winsizes);
# ifdef FEAT_AUTOCMD
- --autocmd_block;
+ unblock_autocmds();
# endif
}