aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 9664bec5..99d2ea60 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -627,7 +627,7 @@ int terminal_size(unsigned *xx, unsigned *yy)
}
s = getenv("COLUMNS");
if (s) sscanf(s, "%u", &x);
- s = getenv("ROWS");
+ s = getenv("LINES");
if (s) sscanf(s, "%u", &y);
// Never return 0 for either value, leave it at default instead.