From 7153f4e40a02e3b247826181d51f0ef91ecd0d8a Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 7 Apr 2023 12:51:26 +0100 Subject: util.human.io: table: don't read $COLUMNS directly, just use term_width() ...which now reads $COLUMNS for us and does the right thing. --- util/human/io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/human/io.lua b/util/human/io.lua index 9654f461..5c826176 100644 --- a/util/human/io.lua +++ b/util/human/io.lua @@ -128,7 +128,7 @@ local function ellipsis(s, width) end local function new_table(col_specs, max_width) - max_width = max_width or term_width(os.getenv("COLUMNS") or 80); + max_width = max_width or term_width(80); local separator = " | "; local widths = {}; -- cgit v1.2.3