From 451cdcf09020a8d6dbfb5f7741450e58c5b2279b Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Tue, 9 Feb 2016 17:59:47 +0100 Subject: [PATCH] tooltip bugfix --- info.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/info.lua b/info.lua index 48455be..e8c044a 100644 --- a/info.lua +++ b/info.lua @@ -233,8 +233,8 @@ end function public.tooltip_match(pattern, tooltip) return Aux.util.any(tooltip, function(line) - local left_match = line.left.text and strupper(line.left_text) == strupper(pattern) - local right_match = line.left.text and strupper(line.right_text) == strupper(pattern) + local left_match = line.left_text and strupper(line.left_text) == strupper(pattern) + local right_match = line.right_text and strupper(line.right_text) == strupper(pattern) return left_match or right_match end) end