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