Skip to content

Commit b4093d1

Browse files
committed
Fix to skip whitespace from line being tested, not prev assertion line
1 parent cd7a230 commit b4093d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins_/syntaxtest_dev.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ def run(self, edit):
296296

297297
# find the next non-whitespace char on the line being tested above
298298
if skip_whitespace:
299-
for pos in range(details.line_region.begin() + next_col, details.line_region.end()):
299+
line_region = listener.get_details_of_line_being_tested()[1]
300+
pos = line_region.begin() + next_col
301+
for pos in range(pos, line_region.end()):
300302
if view.substr(pos).strip() != '':
301303
break
302304
next_col = view.rowcol(pos)[1]

0 commit comments

Comments
 (0)