# HG changeset patch # User Matthew Wild # Date 1680868286 -3600 # Node ID 115ce3ab5b8b5ec9f34b6b29f116bcc65e5d7dda # Parent 946442df65d3e98ff7b3082befcdc42de5413b68 util.human.io: table: don't read $COLUMNS directly, just use term_width() ...which now reads $COLUMNS for us and does the right thing. diff -r 946442df65d3 -r 115ce3ab5b8b util/human/io.lua --- a/util/human/io.lua Fri Apr 07 12:47:24 2023 +0100 +++ b/util/human/io.lua Fri Apr 07 12:51:26 2023 +0100 @@ -128,7 +128,7 @@ 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 = {};