Skip to content

Commit fc919f1

Browse files
committed
fix #2179
1 parent 24d889a commit fc919f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/syntaxcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ void SyntaxCheck::checkLine(const QString &line, Ranges &newRanges, StackEnviron
627627
tkLength--; // don't take point into misspelled word
628628
}
629629
Error elem;
630-
elem.range = QPair<int, int>(tk.start, tk.length);
630+
elem.range = QPair<int, int>(tk.start, tkLength);
631631
elem.type = ERR_spelling;
632632
newRanges.append(elem);
633633
}

0 commit comments

Comments
 (0)