revert: Broken fix for cursor not being set at end of line

This commit is contained in:
WerWolv
2024-12-25 01:41:50 +01:00
parent c1ed1baaad
commit 9b12232e9f

View File

@@ -320,7 +320,7 @@ TextEditor::Coordinates TextEditor::ScreenPosToCoordinates(const ImVec2 &aPositi
int columnIndex = 0;
float columnX = 0.0f;
while ((size_t)columnIndex <= line.size()) {
while ((size_t)columnIndex < line.size()) {
float columnWidth = 0.0f;
if (line[columnIndex].mChar == '\t') {