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)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 325,
/**/
324,
/**/
if (wp->w_height > 0)
{
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)
set_fraction(wp);
}