mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
/WINDOW BALANCE was buggy sometimes - thanks to poptix for finding it :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1992 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5014a941cb
commit
e261b422ec
@ -721,12 +721,13 @@ static void cmd_window_balance(void)
|
||||
old_size = rec->height;
|
||||
rec->first_line = last_line;
|
||||
rec->last_line = rec->first_line + unit_size-1;
|
||||
rec->height = rec->last_line-rec->first_line+1;
|
||||
|
||||
if (bigger_units > 0) {
|
||||
rec->last_line++;
|
||||
bigger_units--;
|
||||
}
|
||||
|
||||
rec->height = rec->last_line-rec->first_line+1;
|
||||
last_line = rec->last_line+1;
|
||||
|
||||
mainwindow_resize(rec, 0, rec->height-old_size);
|
||||
|
Loading…
Reference in New Issue
Block a user