mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] TextArea: fix cursor position when handling text with UCodePointEmpty
This commit is contained in:
@@ -72,7 +72,7 @@ bool TextArea::handleEventWithText(const char * text, bool indentation, bool for
|
||||
// Insert the text
|
||||
if (insertTextAtLocation(buffer, cursorLocation())) {
|
||||
// Set the cursor location
|
||||
const char * nextCursorLocation = cursorLocation() + (forceCursorRightOfText ? strlen(buffer) : cursorPositionInCommand - text);
|
||||
const char * nextCursorLocation = cursorLocation() + (forceCursorRightOfText ? strlen(buffer) : cursorPositionInCommand - buffer);
|
||||
setCursorLocation(nextCursorLocation);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user