0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.0-240

This commit is contained in:
Bram Moolenaar
2007-05-02 19:50:14 +00:00
parent eeefcc7723
commit ee79cbc7af
2 changed files with 27 additions and 1 deletions

View File

@@ -722,6 +722,12 @@ win_split_ins(size, flags, newwin, dir)
need_status = STATUS_HEIGHT;
}
#ifdef FEAT_GUI
/* May be needed for the scrollbars that are going to change. */
if (gui.in_use)
out_flush();
#endif
#ifdef FEAT_VERTSPLIT
if (flags & WSP_VERT)
{
@@ -4071,6 +4077,12 @@ win_alloc(after)
if (newwin != NULL)
{
#ifdef FEAT_AUTOCMD
/* Don't execute autocommands while the window is not properly
* initialized yet. gui_create_scrollbar() may trigger a FocusGained
* event. */
++autocmd_block;
#endif
/*
* link the window in the window list
*/
@@ -4100,7 +4112,6 @@ win_alloc(after)
#ifdef FEAT_GUI
if (gui.in_use)
{
out_flush();
gui_create_scrollbar(&newwin->w_scrollbars[SBAR_LEFT],
SBAR_LEFT, newwin);
gui_create_scrollbar(&newwin->w_scrollbars[SBAR_RIGHT],
@@ -4113,6 +4124,9 @@ win_alloc(after)
#endif
#ifdef FEAT_FOLDING
foldInitWin(newwin);
#endif
#ifdef FEAT_AUTOCMD
--autocmd_block;
#endif
}
return newwin;
@@ -4130,6 +4144,12 @@ win_free(wp, tp)
{
int i;
#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;
#endif
#ifdef FEAT_MZSCHEME
mzscheme_window_free(wp);
#endif
@@ -4188,6 +4208,10 @@ win_free(wp, tp)
win_remove(wp, tp);
vim_free(wp);
#ifdef FEAT_AUTOCMD
--autocmd_block;
#endif
}
/*