Skip to content

Commit

Permalink
Ignore widgets (#138)
Browse files Browse the repository at this point in the history
Resolves #84
  • Loading branch information
rchl committed Apr 2, 2020
1 parent 299333d commit 955ccaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trailing_spaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ def ignore_view(view):
if view.is_scratch():
return True

view_syntax = view.settings().get('syntax')
view_settings = view.settings()

if not view_syntax:
if not view_settings.get('syntax') or view_settings.get('is_widget'):
return False

for syntax_ignore in trailing_spaces_syntax_ignore:
Expand Down

0 comments on commit 955ccaf

Please sign in to comment.