aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
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 8a162059..51a95ed5 100644
--- a/util/human/io.lua
+++ b/util/human/io.lua
@@ -126,7 +126,7 @@ local function ellipsis(s, width)
end
local function new_table(col_specs, max_width)
- max_width = max_width or tonumber(os.getenv("COLUMNS")) or 80;
+ max_width = max_width or term_width(os.getenv("COLUMNS") or 80);
local separator = " | ";
local widths = {};