Skip to content

Commit b2b1755

Browse files
committed
Remove pre-5.2 Lua varargs syntax (fixes #90)
1 parent d40fbdb commit b2b1755

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ioncore/ioncore_menudb.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ end
4444
-- Define context menu for context \var{ctx}, \var{tab} being a table
4545
-- of menu entries.
4646
function ioncore.defctxmenu(ctx, ...)
47+
local arg = {...}
4748
local tab, add
4849
if #arg>1 and type(arg[1])=="string" then
4950
tab=arg[2]

ioncore/ioncore_winprops.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ local ioncore=_G.ioncore
1111
local winprops={}
1212

1313
local function ifnil(...)
14+
local arg = {...}
1415
local n=#arg
1516
local function nxt(_, i)
1617
local j=i+1

0 commit comments

Comments
 (0)