run_or_raise: fix for lua 5.2 upgrade
Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
aca737cdc4
commit
0817c7f460
|
@ -919,7 +919,7 @@ function client.run_or_raise(cmd, matcher, merge)
|
||||||
local findex = util.table.hasitem(clients, capi.client.focus) or 1
|
local findex = util.table.hasitem(clients, capi.client.focus) or 1
|
||||||
local start = util.cycle(#clients, findex + 1)
|
local start = util.cycle(#clients, findex + 1)
|
||||||
|
|
||||||
for c in iterate(matcher, start) do
|
for c in client.iterate(matcher, start) do
|
||||||
client.jumpto(c, merge)
|
client.jumpto(c, merge)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue