mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.325
Problem: When starting the gui and changing the window size the status line may not be drawn correctly. Solution: Catch new_win_height() being called recursively. (Christian Brabandt)
This commit is contained in:
parent
822ff866bd
commit
0ae36a5c85
@ -734,6 +734,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 */
|
||||||
|
/**/
|
||||||
|
325,
|
||||||
/**/
|
/**/
|
||||||
324,
|
324,
|
||||||
/**/
|
/**/
|
||||||
|
@ -5660,7 +5660,12 @@ win_new_height(wp, height)
|
|||||||
if (wp->w_height > 0)
|
if (wp->w_height > 0)
|
||||||
{
|
{
|
||||||
if (wp == curwin)
|
if (wp == curwin)
|
||||||
validate_cursor(); /* w_wrow needs to be valid */
|
/* w_wrow needs to be valid. When setting 'laststatus' this may
|
||||||
|
* call win_new_height() recursively. */
|
||||||
|
validate_cursor();
|
||||||
|
if (wp->w_height != prev_height)
|
||||||
|
return; /* Recursive call already changed the size, bail out here
|
||||||
|
to avoid the following to mess things up. */
|
||||||
if (wp->w_wrow != wp->w_prev_fraction_row)
|
if (wp->w_wrow != wp->w_prev_fraction_row)
|
||||||
set_fraction(wp);
|
set_fraction(wp);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user