Commit ebe6e7de authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Lua.cli: improve lua 5.3 compatibility

Close #14803
parent c26b4106
......@@ -343,7 +343,7 @@ function help(name,client,arg)
end
if val.args then str = str .. " " .. val.args end
if #str%2 == 1 then str = str .. " " end
str = str .. string.rep(" .",(width-(#str+#val.help)-1)/2)
str = str .. string.rep(" .",math.floor((width-(#str+#val.help)-1)/2))
str = str .. string.rep(" ",width-#str-#val.help) .. val.help
end
client:append(str)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment