1
0
mirror of synced 2024-11-28 01:20:51 +01:00

fix: Another text editor merge issue

This commit is contained in:
WerWolv 2024-09-15 16:14:43 +02:00
parent b3a0ebe7b6
commit 21be959cba

View File

@ -391,9 +391,12 @@ TextEditor::Coordinates TextEditor::FindWordEnd(const Coordinates &aFrom) const
while (cindex < (line.size()) && !isWordChar(line[cindex].mChar))
++cindex;
while (cindex < (line.size()) && isWordChar(line[cindex].mChar))
++cindex;
if (line[cindex-1].mChar == '\"')
--cindex;
return Coordinates(aFrom.mLine, GetCharacterColumn(aFrom.mLine, cindex));
}