mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Fix awful.rules.does_match: use _rules as arg
This commit is contained in:
parent
ad9e57d0c1
commit
285f24d234
1 changed files with 3 additions and 3 deletions
|
@ -148,11 +148,11 @@ end
|
|||
|
||||
--- Check if a client matches a given set of rules.
|
||||
-- @client c The client.
|
||||
-- @tab rules The rules to check. List with "rule", "rule_any", "except" and
|
||||
-- @tab _rules The rules to check. List with "rule", "rule_any", "except" and
|
||||
-- "except_any" keys.
|
||||
-- @treturn bool True if at least one rule is matched, false otherwise.
|
||||
function rules.does_match(c, rules)
|
||||
local result = rules.matching_rules(c, rules)
|
||||
function rules.does_match(c, _rules)
|
||||
local result = rules.matching_rules(c, _rules)
|
||||
return #result == 0 and false or result
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue