upgrade to 466 version
[platform/upstream/less.git] / screen.c
index 688ba20..73308f3 100755 (executable)
--- a/screen.c
+++ b/screen.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1984-2012  Mark Nudelman
+ * Copyright (C) 1984-2014  Mark Nudelman
  *
  * You may distribute under the terms of either the GNU General Public
  * License or the Less License, as specified in the README file.
@@ -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;
 }