mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02: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:
parent
085888d1c0
commit
1d6aeb08fd
1 changed files with 1 additions and 3 deletions
|
|
@ -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--;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue