Skip to content

Commit 8614e5b

Browse files
committed
Use new vararg param syntax from Lua 5.5.
Requires latest Textadept.
1 parent 4129e6e commit 8614e5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ local M = {}
3030
-- @table env
3131
-- @local
3232
local env = setmetatable({
33-
print = function(...)
33+
print = function(...args)
3434
buffer:add_text('--> ')
35-
local args = table.pack(...)
3635
for i = 1, args.n do
3736
buffer:add_text(tostring(args[i]))
3837
if i < args.n then buffer:add_text('\t') end

0 commit comments

Comments
 (0)