gui.c: Remove condition which is always true.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 5 Mar 2016 20:30:31 +0000 (21:30 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 13 Mar 2016 17:11:32 +0000 (18:11 +0100)
If top.win is NULL, curses_active() is false so we return early.

gui.c

diff --git a/gui.c b/gui.c
index e9e9487..9d96e70 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -776,7 +776,7 @@ static void init_curses(void)
 {
        if (curses_active())
                return;
-       if (top.win && refresh() == ERR) /* refresh is really needed */
+       if (refresh() == ERR) /* refresh is really needed */
                die(EXIT_FAILURE, "refresh() failed\n");
        if (LINES < theme.lines_min || COLS < theme.cols_min)
                die(EXIT_FAILURE, "Terminal (%dx%d) too small"