aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
diff options
context:
space:
mode:
authormitchell <unknown>2019-07-11 12:49:28 -0400
committermitchell <unknown>2019-07-11 12:49:28 -0400
commite305512e58c726ef1855ffec4af69c90cfc9e396 (patch)
tree9ac416d8c4d4c676d9bf8b7c6f546e179b583616 /cocoa
parentf40378978a7b3bb901a2085a2c76b1ac4a3f45a0 (diff)
downloadscintilla-mirror-e305512e58c726ef1855ffec4af69c90cfc9e396.tar.gz
Backport: Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF.
Backport of changeset 7575:e1e9f53b0423.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/ScintillaCocoa.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm
index 7c70b2e60..b4789c432 100644
--- a/cocoa/ScintillaCocoa.mm
+++ b/cocoa/ScintillaCocoa.mm
@@ -2292,11 +2292,11 @@ ptrdiff_t ScintillaCocoa::InsertText(NSString *input) {
while (sv.length()) {
const unsigned char leadByte = sv[0];
const unsigned int bytesInCharacter = UTF8BytesOfLead[leadByte];
- AddCharUTF(sv.c_str(), bytesInCharacter, false);
+ InsertCharacter(sv.c_str(), bytesInCharacter);
sv = sv.substr(bytesInCharacter, sv.length());
}
} else {
- AddCharUTF(encoded.c_str(), static_cast<unsigned int>(encoded.length()), false);
+ InsertCharacter(encoded.c_str(), static_cast<unsigned int>(encoded.length()));
}
}
return encoded.length();