diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-12 13:53:58 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-12 13:53:58 +0000 |
commit | e261b422eca4d49fb7c9fea97bc61c700b6c5c5f (patch) | |
tree | ec14915f69c3214c153872381db4ac49324ef985 /src/fe-text | |
parent | 5014a941cb9577df7047deca48e93e391d87abf6 (diff) | |
download | irssi-e261b422eca4d49fb7c9fea97bc61c700b6c5c5f.zip |
/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
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/mainwindows.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index f6a9f6ea..67006467 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -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); |