From c03eb114a6e31ac585f85019dcdbb80c1705fa56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ch=C5=82odnicki?= Date: Fri, 15 May 2020 18:50:43 +0200 Subject: [PATCH] Fix crash when "syntax_ignore" option is customized (#143) --- trailing_spaces.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trailing_spaces.py b/trailing_spaces.py index 3bfe09f..1bd35b3 100644 --- a/trailing_spaces.py +++ b/trailing_spaces.py @@ -168,8 +168,9 @@ def ignore_view(view): return True view_settings = view.settings() + view_syntax = view_settings.get('syntax') - if not view_settings.get('syntax') or view_settings.get('is_widget'): + if not view_syntax or view_settings.get('is_widget'): return False for syntax_ignore in settings['syntax_ignore']: