1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

fe-text/mainwindows: fix /window balance warning

mainwindow_resize() expects that the mainwindow's height has not yet
been updated, as it updates it itself, and throws a warning otherwise.
This commit is contained in:
Doug Freed 2019-06-09 23:03:31 +00:00
parent 085888d1c0
commit 1d6aeb08fd

View File

@ -1298,9 +1298,7 @@ static void window_balance_vertical(void)
rec->last_line++;
}
rec->height = rec->last_line-rec->first_line+1;
mainwindow_resize(rec, 0, rec->height-old_size);
mainwindow_resize(rec, 0, rec->last_line - rec->first_line + 1 - old_size);
}
if (line != NULL && bigger_units > 0) {
bigger_units--;