From 3d85ff9465c30cbf064d93d4814ad67b9b30fdc8 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 26 Feb 2019 02:39:38 +0100 Subject: [PATCH] shifty: be consistent when matching role --- lib/shifty.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shifty.lua b/lib/shifty.lua index 3bbf48d..a5103fe 100644 --- a/lib/shifty.lua +++ b/lib/shifty.lua @@ -556,7 +556,7 @@ function match(c, startup) matched = (cls and cls:find(w)) or (inst and inst:find(w)) or (name and name:find(w)) or - (role and role:find(w)) or + (role and (role == w)) or (typ and typ:find(w)) if matched then break