Skip to content

Commit 72e5f09

Browse files
authored
Merge pull request #1 from jdunlap/jdunlap-patch-1
Update TextEditor.cpp
2 parents 0a88824 + f7aa215 commit 72e5f09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TextEditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2335,7 +2335,7 @@ void TextEditor::ColorizeInternal()
23352335
{
23362336
withinSingleLineComment = true;
23372337
}
2338-
else if (!withinSingleLineComment && currentIndex + startStr.size() <= line.size() &&
2338+
else if (startStr.size() != 0 && !withinSingleLineComment && currentIndex + startStr.size() <= line.size() &&
23392339
equals(startStr.begin(), startStr.end(), from, from + startStr.size(), pred))
23402340
{
23412341
commentStartLine = currentLine;

0 commit comments

Comments
 (0)