mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
a0e593e261
commit
8ae492bb5a
@ -270,7 +270,7 @@ static int included_patches[] = {
|
||||
328,
|
||||
327,
|
||||
//326 NA
|
||||
//325,
|
||||
325,
|
||||
//324,
|
||||
323,
|
||||
//322 NA
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user