From 0ae36a5c8542d51dd0d70035e997d96e4a20dcbb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 13 Jun 2014 20:08:45 +0200 Subject: 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) --- src/window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index f4dea1da1..a94245a81 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); } -- cgit v1.2.1