From 99217fdcc21e57ea0a0fbcff3a5c885663b95a02 Mon Sep 17 00:00:00 2001 From: Thibault Leruitte Date: Fri, 22 Jun 2012 15:23:16 +0200 Subject: [PATCH] fix bug in determining if the view is a find result --- trailing_spaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trailing_spaces.py b/trailing_spaces.py index 183ea91..875e05f 100644 --- a/trailing_spaces.py +++ b/trailing_spaces.py @@ -31,7 +31,7 @@ trailing_spaces_enabled = bool(ts_settings.get('trailing_spaces_enabled', # Determine if the view is a find results view def is_find_results(view): - return "Find Results" in view.settings().get('syntax') + return view.settings().get('syntax') and "Find Results" in view.settings().get('syntax') # Return an array of regions matching trailing spaces. def find_trailing_spaces(view):