From 285f24d234c26a2dfa9e4ac4924ba093ddfc95cc Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 28 Aug 2015 19:56:12 +0200 Subject: [PATCH] Fix awful.rules.does_match: use _rules as arg --- lib/awful/rules.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/rules.lua b/lib/awful/rules.lua index 7a1eb11f8..6b1a7f2af 100644 --- a/lib/awful/rules.lua +++ b/lib/awful/rules.lua @@ -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