Skip to content

Commit

Permalink
alias unpack to table.unpack if needed (lua>=5.2) (#127)
Browse files Browse the repository at this point in the history
fix #124
  • Loading branch information
knixeur authored and raboof committed Jun 21, 2019
1 parent c794418 commit db7e0ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/mkman.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

local translations={}

local unpack = unpack or table.unpack

local function gettext(x)
local t=translations[x]
if not t or t=="" then
Expand Down
2 changes: 2 additions & 0 deletions ioncore/ioncore_misc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ local layouts={
default = empty,
}

local unpack = unpack or table.unpack

--DOC
-- Define a new workspace layout with name \var{name}, and
-- attach/creation parameters given in \var{tab}. The layout
Expand Down
2 changes: 2 additions & 0 deletions mod_statusbar/ion-statusd/statusd_mail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ local defaults={
files = {}
}

local unpack = unpack or table.unpack

local settings=table.join(statusd.get_config(mon), defaults)

local function TR(s, ...)
Expand Down

0 comments on commit db7e0ae

Please sign in to comment.