diff --git a/lib/awful.lua.in b/lib/awful.lua.in index b57f29fbe..a75f88260 100644 --- a/lib/awful.lua.in +++ b/lib/awful.lua.in @@ -881,7 +881,7 @@ local function prompt_history_save(id) local f = io.open(id, "w") if not f then local i = 0 - for d in id:gfind(".-/") do + for d in id:gmatch(".-/") do i = i + #d end mkdir(id:sub(1, i - 1))