From 33e57c3a92e4c105504832b4bb106273ffcdc2a7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 5 Mar 2016 21:30:31 +0100 Subject: [PATCH] gui.c: Remove condition which is always true. If top.win is NULL, curses_active() is false so we return early. --- gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.c b/gui.c index e9e94873..9d96e70f 100644 --- 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" -- 2.39.2