X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/52deb6911957f840a0191f73c8a9626bd9ff5086..5f643320f36d201df94ee56303b0504afd695697:/widgets/contrib/moc.lua?ds=inline diff --git a/widgets/contrib/moc.lua b/widgets/contrib/moc.lua index bd25ffb..b818bb6 100644 --- a/widgets/contrib/moc.lua +++ b/widgets/contrib/moc.lua @@ -59,7 +59,7 @@ local function worker(args) total = "N/A" } - for line in f:lines() do + for line in string.gmatch(f, "[^\n]+") do for k, v in string.gmatch(line, "([%w]+):[%s](.*)$") do if k == "State" then moc_now.state = v elseif k == "File" then moc_now.file = v