Skip to content

Commit 955ccaf

Browse files
authored
Ignore widgets (#138)
Resolves #84
1 parent 299333d commit 955ccaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trailing_spaces.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ def ignore_view(view):
194194
if view.is_scratch():
195195
return True
196196

197-
view_syntax = view.settings().get('syntax')
197+
view_settings = view.settings()
198198

199-
if not view_syntax:
199+
if not view_settings.get('syntax') or view_settings.get('is_widget'):
200200
return False
201201

202202
for syntax_ignore in trailing_spaces_syntax_ignore:

0 commit comments

Comments
 (0)