Skip to content

Commit e247190

Browse files
authored
Ignore scratch views (#134)
Main reason for that is Terminus plugin that uses plain.text scope and syntax so can't be ignored through those means. But this change should make sense in general, anyway. Resolves #127 Resolves #120
1 parent 86b0843 commit e247190

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

trailing_spaces.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ def match_trailing_spaces(view):
136136
#
137137
# Returns True if the view should be ignored, False otherwise.
138138
def ignore_view(view):
139+
if view.is_scratch():
140+
return True
141+
139142
view_syntax = view.settings().get('syntax')
140143

141144
if not view_syntax:

0 commit comments

Comments
 (0)