X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=screen.c;h=73308f346d40647b71c797b7feda25345d3fdcaa;hb=HEAD;hp=688ba20ae868e8c1035ab29d9e13e7d79f06bac0;hpb=42ae3d9177e50dc7fecfc3881da7dc19e9ce3261;p=platform%2Fupstream%2Fless.git diff --git a/screen.c b/screen.c index 688ba20..73308f3 100755 --- 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; }