summaryrefslogtreecommitdiff
path: root/src/window.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/window.c
parent51b8436f09c0ea855758b2086d92f838acab7631 (diff)
downloadvim-git-78ab331e0d8a76f553830f0347ac27311e4dc0f8.tar.gz
updated for version 7.1-125v7.1.125
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/window.c b/src/window.c
index 95f4a246c..74e364687 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1291,7 +1291,7 @@ make_windows(count, vertical)
* Don't execute autocommands while creating the windows. Must do that
* when putting the buffers in the windows.
*/
- ++autocmd_block;
+ block_autocmds();
#endif
/* todo is number of windows left to create */
@@ -1313,7 +1313,7 @@ make_windows(count, vertical)
}
#ifdef FEAT_AUTOCMD
- --autocmd_block;
+ unblock_autocmds();
#endif
/* return actual number of windows */
@@ -3415,7 +3415,7 @@ make_tabpages(maxcount)
* Don't execute autocommands while creating the tab pages. Must do that
* when putting the buffers in the windows.
*/
- ++autocmd_block;
+ block_autocmds();
#endif
for (todo = count - 1; todo > 0; --todo)
@@ -3423,7 +3423,7 @@ make_tabpages(maxcount)
break;
#ifdef FEAT_AUTOCMD
- --autocmd_block;
+ unblock_autocmds();
#endif
/* return actual number of tab pages */
@@ -4162,7 +4162,7 @@ win_alloc(after)
/* Don't execute autocommands while the window is not properly
* initialized yet. gui_create_scrollbar() may trigger a FocusGained
* event. */
- ++autocmd_block;
+ block_autocmds();
#endif
/*
* link the window in the window list
@@ -4207,7 +4207,7 @@ win_alloc(after)
foldInitWin(newwin);
#endif
#ifdef FEAT_AUTOCMD
- --autocmd_block;
+ unblock_autocmds();
#endif
#ifdef FEAT_SEARCH_EXTRA
newwin->w_match_head = NULL;
@@ -4232,7 +4232,7 @@ win_free(wp, tp)
#ifdef FEAT_AUTOCMD
/* Don't execute autocommands while the window is halfway being deleted.
* gui_mch_destroy_scrollbar() may trigger a FocusGained event. */
- ++autocmd_block;
+ block_autocmds();
#endif
#ifdef FEAT_MZSCHEME
@@ -4295,7 +4295,7 @@ win_free(wp, tp)
vim_free(wp);
#ifdef FEAT_AUTOCMD
- --autocmd_block;
+ unblock_autocmds();
#endif
}