0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.2-122

This commit is contained in:
Bram Moolenaar
2009-02-22 20:13:39 +00:00
parent b3dc8fd3fd
commit 87e817c586
2 changed files with 16 additions and 1 deletions

View File

@@ -7368,7 +7368,11 @@ screenalloc(clear)
#endif #endif
static int entered = FALSE; /* avoid recursiveness */ static int entered = FALSE; /* avoid recursiveness */
static int done_outofmem_msg = FALSE; /* did outofmem message */ static int done_outofmem_msg = FALSE; /* did outofmem message */
#ifdef FEAT_AUTOCMD
int retry_count = 0;
retry:
#endif
/* /*
* Allocation of the screen buffers is done only when the size changes and * Allocation of the screen buffers is done only when the size changes and
* when Rows and Columns have been set and we have started doing full * when Rows and Columns have been set and we have started doing full
@@ -7643,8 +7647,17 @@ give_up:
--RedrawingDisabled; --RedrawingDisabled;
#ifdef FEAT_AUTOCMD #ifdef FEAT_AUTOCMD
if (starting == 0) /*
* Do not apply autocommands more than 3 times to avoid an endless loop
* in case applying autocommands always changes Rows or Columns.
*/
if (starting == 0 && ++retry_count <= 3)
{
apply_autocmds(EVENT_VIMRESIZED, NULL, NULL, FALSE, curbuf); apply_autocmds(EVENT_VIMRESIZED, NULL, NULL, FALSE, curbuf);
/* In rare cases, autocommands may have altered Rows or Columns,
* jump back to check if we need to allocate the screen again. */
goto retry;
}
#endif #endif
} }

View File

@@ -676,6 +676,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
122,
/**/ /**/
121, 121,
/**/ /**/