aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2023-04-07 12:51:26 +0100
committerMatthew Wild <mwild1@gmail.com>2023-04-07 12:51:26 +0100
commit7153f4e40a02e3b247826181d51f0ef91ecd0d8a (patch)
treeceb2d7b4ee6c025ab6544745be06b55e5cf05eec /util
parentf842e05e9547399457ba5a00a5861a6cae60be8a (diff)
downloadprosody-7153f4e40a02e3b247826181d51f0ef91ecd0d8a.tar.gz
prosody-7153f4e40a02e3b247826181d51f0ef91ecd0d8a.zip
util.human.io: table: don't read $COLUMNS directly, just use term_width()
...which now reads $COLUMNS for us and does the right thing.
Diffstat (limited to 'util')
-rw-r--r--util/human/io.lua2
1 files changed, 1 insertions, 1 deletions
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 = {};