mirror of https://github.com/lcpz/lain.git
util/menu_iterator: unpack retro compatibility
* Lua 5.2 renamed `unpack` to `table.unpack`. * Fix: helpers.lua required.
This commit is contained in:
parent
93b31ef0e9
commit
037f2c3641
|
@ -12,7 +12,8 @@ local io = { lines = io.lines,
|
|||
open = io.open }
|
||||
local pairs = pairs
|
||||
local rawget = rawget
|
||||
local table = { sort = table.sort }
|
||||
local table = { sort = table.sort, unpack = table.unpack }
|
||||
local unpack = unpack or table.unpack -- lua 5.1 retro-compatibility
|
||||
|
||||
-- Lain helper functions for internal use
|
||||
-- lain.helpers
|
||||
|
|
|
@ -11,12 +11,13 @@
|
|||
-- lain.util.menu_iterator
|
||||
|
||||
local naughty = require("naughty")
|
||||
local helpers = require("lain.helpers")
|
||||
local util = require("lain.util")
|
||||
local atable = require("awful.util").table
|
||||
local assert = assert
|
||||
local pairs = pairs
|
||||
local tconcat = table.concat
|
||||
local unpack = unpack
|
||||
local unpack = unpack or table.unpack -- lua 5.1 retro-compatibility
|
||||
|
||||
local state = { cid = nil }
|
||||
|
||||
|
|
Loading…
Reference in New Issue