From d89361739acdf07f0b0775c85f69abe89d57b600 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 9 May 2011 09:49:08 +0000 Subject: 29165: use term.h globally if needed at all. --- Src/loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/loop.c') diff --git a/Src/loop.c b/Src/loop.c index 40dbe6f8f..90a0761b3 100644 --- a/Src/loop.c +++ b/Src/loop.c @@ -324,13 +324,13 @@ selectlist(LinkList l, size_t start) while (t0) t0 /= 10, longest++; /* to compensate for added ')' */ - fct = (columns - 1) / (longest + 3); + fct = (zterm_columns - 1) / (longest + 3); if (fct == 0) fct = 1; else - fw = (columns - 1) / fct; + fw = (zterm_columns - 1) / fct; colsz = (ct + fct - 1) / fct; - for (t1 = start; t1 != colsz && t1 - start < lines - 2; t1++) { + for (t1 = start; t1 != colsz && t1 - start < zterm_lines - 2; t1++) { ap = arr + t1; do { size_t t2 = strlen(*ap) + 2; -- cgit v1.2.3