File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ local lgi = require("lgi")
2
2
local Astal = lgi .require (" Astal" , " 3.0" )
3
3
local Gtk = lgi .require (" Gtk" , " 3.0" )
4
4
local GObject = lgi .require (" GObject" , " 2.0" )
5
- local Binding = require (" astal.lib. binding" )
6
- local Variable = require (" astal.lib. variable" )
7
- local exec_async = require (" astal.lib. process" ).exec_async
5
+ local Binding = require (" astal.binding" )
6
+ local Variable = require (" astal.variable" )
7
+ local exec_async = require (" astal.process" ).exec_async
8
8
9
9
local function filter (tbl , fn )
10
10
local copy = {}
@@ -28,8 +28,7 @@ local function map(tbl, fn)
28
28
return copy
29
29
end
30
30
31
- local flatten
32
- flatten = function (tbl )
31
+ local function flatten (tbl )
33
32
local copy = {}
34
33
for _ , value in pairs (tbl ) do
35
34
if type (value ) == " table" and getmetatable (value ) == nil then
Original file line number Diff line number Diff line change
1
+ if not table.unpack then
2
+ table .unpack = unpack
3
+ end
4
+
1
5
local lgi = require (" lgi" )
2
6
local Binding = require (" astal.binding" )
3
7
local File = require (" astal.file" )
4
- local Process = require (" astal.proc " )
8
+ local Process = require (" astal.process " )
5
9
local Time = require (" astal.time" )
6
10
local Variable = require (" astal.variable" )
7
11
Original file line number Diff line number Diff line change @@ -273,4 +273,4 @@ return setmetatable(Variable, {
273
273
__call = function (_ , v )
274
274
return Variable .new (v )
275
275
end ,
276
- })
276
+ })
You can’t perform that action at this time.
0 commit comments