From 1e79a7c53fbfd7481e26f92037de92597dedaf79 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Mon, 17 Jun 2019 08:49:43 +1000 Subject: Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF. --- gtk/ScintillaGTK.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index ff2b1ffdf..f138da131 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2259,7 +2259,7 @@ void ScintillaGTK::MoveImeCarets(int pos) { void ScintillaGTK::DrawImeIndicator(int indicator, int len) { // Emulate the visual style of IME characters with indicators. // Draw an indicator on the character before caret by the character bytes of len - // so it should be called after addCharUTF(). + // so it should be called after InsertCharacter(). // It does not affect caret positions. if (indicator < 8 || indicator > INDIC_MAX) { return; @@ -2351,7 +2351,7 @@ void ScintillaGTK::CommitThis(char *commitStr) { if (!IsUnicodeMode()) docChar = ConvertText(u8Char, u8CharLen, charSetSource, "UTF-8", true); - AddCharUTF(docChar.c_str(), docChar.size()); + InsertCharacter(docChar); } g_free(uniStr); ShowCaretAtCurrentPosition(); @@ -2412,7 +2412,7 @@ void ScintillaGTK::PreeditChangedInlineThis() { if (!IsUnicodeMode()) docChar = ConvertText(u8Char, u8CharLen, charSetSource, "UTF-8", true); - AddCharUTF(docChar.c_str(), docChar.size()); + InsertCharacter(docChar); DrawImeIndicator(indicator[i], docChar.size()); } -- cgit v1.2.3