aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/human/io.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/human/io.lua b/util/human/io.lua
index 83a521c3..7d7dea97 100644
--- a/util/human/io.lua
+++ b/util/human/io.lua
@@ -93,11 +93,11 @@ local function printf(fmt, ...)
end
local function padright(s, width)
- return s..string.rep(" ", width-#s);
+ return s..string.rep(" ", width-len(s));
end
local function padleft(s, width)
- return string.rep(" ", width-#s)..s;
+ return string.rep(" ", width-len(s))..s;
end
local pat = "[%z\001-\127\194-\253][\128-\191]*";