[vlc-commits] Lua.cli: improve lua 5.3 compatibility
Jean-Baptiste Kempf
git at videolan.org
Sun Jun 14 19:04:31 CEST 2015
vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jun 13 18:15:06 2015 +0200| [323e27132254fce3d4177eba3c29732cac6f3332] | committer: Jean-Baptiste Kempf
Lua.cli: improve lua 5.3 compatibility
Close #14803
(cherry picked from commit ebe6e7de1bbdf7181cdbeca61b5591f9b31ac711)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=323e27132254fce3d4177eba3c29732cac6f3332
---
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 5af1e73..0a0f436 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