X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/a659d1a4bc99d27a1746985e13f68efc3dd256c7..fa9fb11a7c3eeb186a17c6d93c5da37eb6929d58:/helpers.lua diff --git a/helpers.lua b/helpers.lua index 309162e..b681cb0 100644 --- a/helpers.lua +++ b/helpers.lua @@ -8,6 +8,7 @@ local debug = require("debug") +local assert = assert local capi = { timer = (type(timer) == 'table' and timer or require ("gears.timer")) } local io = { open = io.open, lines = io.lines, @@ -61,9 +62,9 @@ end function helpers.lines_match(regexp, file) local lines = {} for index,line in pairs(helpers.lines_from(file)) do - if string.match(line, regexp) then + if string.match(line, regexp) then lines[index] = line - end + end end return lines end