summaryrefslogtreecommitdiffstats
path: root/contrib/less/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/screen.c')
-rw-r--r--contrib/less/screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/less/screen.c b/contrib/less/screen.c
index 48b41b9..dffe9fd 100644
--- a/contrib/less/screen.c
+++ b/contrib/less/screen.c
@@ -802,7 +802,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)
@@ -813,7 +813,7 @@ scrsize()
else if ((n = ltgetnum("co")) > 0)
sc_width = n;
#endif
- else
+ if (sc_width <= 0)
sc_width = DEF_SC_WIDTH;
}
OpenPOWER on IntegriCloud