projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee3dfa7
)
gui.c: Remove condition which is always true.
author
Andre Noll
<maan@tuebingen.mpg.de>
Sat, 5 Mar 2016 20:30:31 +0000
(21:30 +0100)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/gui.c
b/gui.c
index e9e94873ae28f0963d355fe6d40683f78b6f2f41..9d96e70f6949362b39b50fa1dc23e85327a9316a 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"