window: Silence PVS/V547: height may be changed by curwin ptr

This commit is contained in:
ZyX
2018-04-22 20:24:57 +03:00
parent d9c010e45d
commit c8648daab3

View File

@@ -4807,7 +4807,7 @@ void win_new_height(win_T *wp, int height)
// call win_new_height() recursively.
validate_cursor();
}
if (wp->w_height != prev_height) {
if (wp->w_height != prev_height) { // -V547
return; // Recursive call already changed the size, bail out.
}
if (wp->w_wrow != wp->w_prev_fraction_row) {