Skip to content

Commit

Permalink
Fix crash when "syntax_ignore" option is customized (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored May 15, 2020
1 parent f9dff6f commit c03eb11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trailing_spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit c03eb11

Please sign in to comment.