vim-patch:7.4.325 #1078

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)

https://code.google.com/p/vim/source/detail?r=1f288d247548
This commit is contained in:
Justin M. Keyes 2014-08-17 22:02:02 +00:00
parent a0e593e261
commit 8ae492bb5a
2 changed files with 7 additions and 2 deletions

View File

@ -270,7 +270,7 @@ static int included_patches[] = {
328,
327,
//326 NA
//325,
325,
//324,
323,
//322 NA

View File

@ -4484,7 +4484,12 @@ void win_new_height(win_T *wp, int 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.
}
if (wp->w_wrow != wp->w_prev_fraction_row) {
set_fraction(wp);