changeset 467:b92b18500bf9

Oops. We've been trying to get number of terminal lines from environment variable "LINESS" .. fixed to "LINES".
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Jun 2018 02:39:40 +0300
parents bdee04d21282
children bbe3c9175d77
files th_util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/th_util.c	Mon Jun 04 02:35:18 2018 +0300
+++ b/th_util.c	Mon Jun 04 02:39:40 2018 +0300
@@ -74,7 +74,7 @@
 
 int th_term_height()
 {
-    char *var = getenv("LINESS");
+    char *var = getenv("LINES");
     int res = (var != NULL) ? atoi(var) : 25;
     if (res < 1) res = 1;
     return res;