mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/code] Use textLength in VarBoxController::insertTextInCaller
This commit is contained in:
@@ -62,6 +62,7 @@ void TextToInsertForCommandText(const char * command, int commandLength, char *
|
||||
index += UTF8Decoder::CodePointToChars(codePoint, buffer + index, bufferSize - index);
|
||||
} else {
|
||||
if (replaceArgsWithEmptyChar && !argumentAlreadyReplaced) {
|
||||
assert(index < bufferSize);
|
||||
index += UTF8Decoder::CodePointToChars(UCodePointEmpty, buffer + index, bufferSize - index);
|
||||
argumentAlreadyReplaced = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user