summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-12-08 16:32:56 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-12-08 16:32:56 +0000
commit770c906a1c9495fff5016477871299c4a0dfdf97 (patch)
tree603c9a5ed5373ebf7b45056054031275336f6b27 /src/fe-text/mainwindows.c
parent8c64738cdc3f3c18d97f70968a48583ee17512b3 (diff)
downloadirssi-770c906a1c9495fff5016477871299c4a0dfdf97.zip
Simplify.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4954 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r--src/fe-text/mainwindows.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c
index ddd56f84..bc043798 100644
--- a/src/fe-text/mainwindows.c
+++ b/src/fe-text/mainwindows.c
@@ -206,9 +206,7 @@ MAIN_WINDOW_REC *mainwindow_create(void)
rec->last_line = rec->first_line + space;
rec->height = rec->last_line-rec->first_line+1;
- parent->first_line = rec->last_line+1;
- parent->height = parent->last_line-parent->first_line+1;
-
+ parent->first_line += space+1;
mainwindow_resize(parent, 0, -space-1);
}