diff options
author | Zufu Liu <unknown> | 2019-06-17 08:49:43 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2019-06-17 08:49:43 +1000 |
commit | 1e79a7c53fbfd7481e26f92037de92597dedaf79 (patch) | |
tree | 7ea049531f97b9bba03c23f28555563480cee58c /gtk/ScintillaGTK.cxx | |
parent | a82f89692231c7bd44b1dab9f4343836bbf1fa54 (diff) | |
download | scintilla-mirror-1e79a7c53fbfd7481e26f92037de92597dedaf79.tar.gz |
Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r-- | gtk/ScintillaGTK.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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()); } |