Skip to content

Commit

Permalink
change from early return to an else in the EventListener on_load
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-hall committed Nov 18, 2021
1 parent 1690207 commit 8335998
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/syntaxtest_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,8 @@ class AssignSyntaxTestSyntaxListener(sublime_plugin.EventListener):
def on_load(self, view):
if view.size() == 0 and view.file_name().startswith(sublime.packages_path() + '/'):
sublime.set_timeout(lambda: self.assign_syntax(view), 100)
return

self.assign_syntax(view)
else:
self.assign_syntax(view)

def assign_syntax(self, view):
test_header = get_syntax_test_tokens(view)
Expand Down

0 comments on commit 8335998

Please sign in to comment.