diff options
author | mitchell <unknown> | 2019-07-11 12:49:28 -0400 |
---|---|---|
committer | mitchell <unknown> | 2019-07-11 12:49:28 -0400 |
commit | e305512e58c726ef1855ffec4af69c90cfc9e396 (patch) | |
tree | 9ac416d8c4d4c676d9bf8b7c6f546e179b583616 /cocoa | |
parent | f40378978a7b3bb901a2085a2c76b1ac4a3f45a0 (diff) | |
download | scintilla-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.mm | 4 |
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(); |