Commit a8b39bcb7c88630836f155e7adda22c4b83704cf

Con Kolivas 2011-07-13T12:07:16

Make the status window maximum width to begin with.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/main.c b/main.c
index dbd4342..86183aa 100644
--- a/main.c
+++ b/main.c
@@ -2106,8 +2106,8 @@ int main (int argc, char *argv[])
 	/* Set up the ncurses interface */
 	if (!opt_quiet) {
 		mainwin = initscr();
-		statuswin = newwin(logstart, 80, 0, 0);
 		getmaxyx(mainwin, y, x);
+		statuswin = newwin(logstart, x, 0, 0);
 		logwin = newwin(y - logcursor, 0, logcursor, 0);
 		idlok(logwin, true);
 		scrollok(logwin, true);