Skip to content

Commit 6214c53

Browse files
committed
Syntax: Fix test completions for non-test lines
Previously a line that started with the test start token but then did not follow the proper formatting would cause an exception to be raised.
1 parent 644b333 commit 6214c53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins_/syntaxtest_dev.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ def run(self, edit, character='^'):
335335
return
336336

337337
lines, line = listener.get_details_of_line_being_tested()
338+
if not lines[-1].assertion_colrange:
339+
return
338340
end_token = listener.header.comment_end
339341
# don't duplicate the end token if it is on the line but not selected
340342
if end_token and view.sel()[0].end() == lines[0].line_region.end():

0 commit comments

Comments
 (0)