X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/89d557638deb75bc3d0e6c8890cb7eec59ab0ce2..96df4b879033f447d494dfc9928d97cc34e5473b:/helpers.lua diff --git a/helpers.lua b/helpers.lua index 08aba0d..af6443f 100644 --- a/helpers.lua +++ b/helpers.lua @@ -61,7 +61,7 @@ end -- get first non empty line from a file, -- returns nil otherwise function helpers.first_nonempty_line(file) - for k,v in pairs(lines_from(file)) do + for k,v in pairs(helpers.lines_from(file)) do if #v then return v end end return nil