less: fix for screen size detection
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 15 Aug 2011 23:53:12 +0000 (01:53 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 15 Aug 2011 23:53:12 +0000 (01:53 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/less.c

index 9543fb9..2c6a793 100644 (file)
@@ -990,7 +990,8 @@ static int64_t less_getch(int pos)
         */
        if (key >= 0 && key < ' ' && key != 0x0d && key != 8)
                goto again;
-       return key;
+
+       return key64;
 }
 
 static char* less_gets(int sz)