summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-06-13 20:08:45 +0200
committerBram Moolenaar <Bram@vim.org>2014-06-13 20:08:45 +0200
commit0ae36a5c8542d51dd0d70035e997d96e4a20dcbb (patch)
treec4f31250dff0034cc5fd456ca9a1e6459c76b9f9
parent822ff866bd6558be993d4455a22454ae53db0eca (diff)
updated for version 7.4.325v7.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)
-rw-r--r--src/version.c2
-rw-r--r--src/window.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index 15db5ad50a..0d0dfd2b44 100644
--- a/src/version.c
+++ b/src/version.c
@@ -735,6 +735,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 325,
+/**/
324,
/**/
323,
diff --git a/src/window.c b/src/window.c
index f4dea1da1a..a94245a818 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5660,7 +5660,12 @@ win_new_height(wp, height)
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);
}