From e261b422eca4d49fb7c9fea97bc61c700b6c5c5f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 12 Nov 2001 13:53:58 +0000 Subject: /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 --- src/fe-text/mainwindows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fe-text') 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); -- cgit v1.2.3