X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/3fc0ed44dc2169d10a42f1c6f6ea39be7dc310dd..4114fc0e981e02f158db8a21e3aa43f4a78916fa:/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