1
0
mirror of synced 2024-11-30 18:34:29 +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)) 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));
} }