awesomerc: use gmatch instead of deprecated gfind
commit3e325782ded9c0280eb544c6d36f82082b79a7f6
authorGregor Best <farhaven@googlemail.com>
Sat, 30 Aug 2008 21:03:36 +0000 (30 23:03 +0200)
committerJulien Danjou <julien@danjou.info>
Sun, 31 Aug 2008 06:43:50 +0000 (31 08:43 +0200)
tree17b600e03e35a83cb9e891cdb3d4d76aeb5cd6e2
parent1a544726e1ae45fa625a9f7d7ce1191d537b91b2
awesomerc: use gmatch instead of deprecated gfind

a user in #awesome made me aware of a little quirk in lib/awful.lua
which renders the history of the prompt unusable when using Gentoo and
installing Lua without the USE-flag "deprecated". Lua states that
string.gfind has been replaced with string.gmatch and aborts the
function prompt_history_save(id). I attached a patch that replaces
id:gfind with id:gmatch, which so far has not revealed any problems.

Signed-off-by: Julien Danjou <julien@danjou.info>
lib/awful.lua.in