FindNextWord fix. Will stpo at the end of the file.
diff --git a/TextEditor.cpp b/TextEditor.cpp index 82717b7..5ab356b 100644 --- a/TextEditor.cpp +++ b/TextEditor.cpp
@@ -459,7 +459,10 @@ while (!isword || skip) { if (at.mLine >= mLines.size()) - return Coordinates(std::max(0, (int)mLines.size() - 1), 0); + { + auto l = std::max(0, (int) mLines.size() - 1); + return Coordinates(l, GetLineMaxColumn(l)); + } auto& line = mLines[at.mLine]; if (cindex < (int)line.size())