From 9b12232e9fc7ad6d8a375c7708cad6d67b528d2d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 25 Dec 2024 01:41:50 +0100 Subject: [PATCH] revert: Broken fix for cursor not being set at end of line --- lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp b/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp index cda7a5938..465f4d5e1 100644 --- a/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp +++ b/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp @@ -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') {