mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.human.io: table: don't read $COLUMNS directly, just use term_width()
...which now reads $COLUMNS for us and does the right thing.
This commit is contained in:
parent
f842e05e95
commit
7153f4e40a
1 changed files with 1 additions and 1 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue