[vlc-commits] Lua.cli: improve lua 5.3 compatibility
Jean-Baptiste Kempf
git at videolan.org
Sat Jun 13 18:15:59 CEST 2015
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jun 13 18:15:06 2015 +0200| [ebe6e7de1bbdf7181cdbeca61b5591f9b31ac711] | committer: Jean-Baptiste Kempf
Lua.cli: improve lua 5.3 compatibility
Close #14803
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebe6e7de1bbdf7181cdbeca61b5591f9b31ac711
---
share/lua/intf/cli.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua
index e2fa856..d6d3001 100644
--- a/share/lua/intf/cli.lua
+++ b/share/lua/intf/cli.lua
@@ -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)
More information about the vlc-commits
mailing list