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 /gtk/ScintillaGTK.cxx | |
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 '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 fd26dd2c6..d49bad1bd 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2258,7 +2258,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; @@ -2350,7 +2350,7 @@ void ScintillaGTK::CommitThis(char *commitStr) { if (!IsUnicodeMode()) docChar = ConvertText(u8Char, u8CharLen, charSetSource, "UTF-8", true); - AddCharUTF(docChar.c_str(), docChar.size()); + InsertCharacter(docChar.c_str(), docChar.size()); } 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.c_str(), docChar.size()); DrawImeIndicator(indicator[i], docChar.size()); } |