From e305512e58c726ef1855ffec4af69c90cfc9e396 Mon Sep 17 00:00:00 2001 From: mitchell Date: Thu, 11 Jul 2019 12:49:28 -0400 Subject: Backport: Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF. Backport of changeset 7575:e1e9f53b0423. --- cocoa/ScintillaCocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa') 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(encoded.length()), false); + InsertCharacter(encoded.c_str(), static_cast(encoded.length())); } } return encoded.length(); -- cgit v1.2.3