fix: Another text editor merge issue
This commit is contained in:
parent
b3a0ebe7b6
commit
21be959cba
@ -391,9 +391,12 @@ TextEditor::Coordinates TextEditor::FindWordEnd(const Coordinates &aFrom) const
|
|||||||
|
|
||||||
while (cindex < (line.size()) && !isWordChar(line[cindex].mChar))
|
while (cindex < (line.size()) && !isWordChar(line[cindex].mChar))
|
||||||
++cindex;
|
++cindex;
|
||||||
|
while (cindex < (line.size()) && isWordChar(line[cindex].mChar))
|
||||||
|
++cindex;
|
||||||
|
|
||||||
if (line[cindex-1].mChar == '\"')
|
if (line[cindex-1].mChar == '\"')
|
||||||
--cindex;
|
--cindex;
|
||||||
|
|
||||||
return Coordinates(aFrom.mLine, GetCharacterColumn(aFrom.mLine, cindex));
|
return Coordinates(aFrom.mLine, GetCharacterColumn(aFrom.mLine, cindex));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user