mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Clicking past end of line in text editor putting cursor before last character
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user