aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 5c826176..8a903d38 100644
--- a/util/human/io.lua
+++ b/util/human/io.lua
@@ -109,7 +109,7 @@ if utf8.len and utf8.offset then
end
local function term_width(default)
- local env_cols = os.getenv "COLUMNS";
+ local env_cols = tonumber(os.getenv "COLUMNS");
if env_cols then return env_cols; end
local stty = io.popen("stty -a");
if not stty then return default; end