summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.c b/screen.c
index 688ba20ae868..a79eba2c4bf0 100644
--- a/screen.c
+++ b/screen.c
@@ -801,7 +801,7 @@ scrsize()
else if ((n = ltgetnum("li")) > 0)
sc_height = n;
#endif
- else
+ if (sc_height <= 0)
sc_height = DEF_SC_HEIGHT;
if (sys_width > 0)
@@ -812,7 +812,7 @@ scrsize()
else if ((n = ltgetnum("co")) > 0)
sc_width = n;
#endif
- else
+ if (sc_width <= 0)
sc_width = DEF_SC_WIDTH;
}