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 /win32/ScintillaWin.cxx | |
parent | a82f89692231c7bd44b1dab9f4343836bbf1fa54 (diff) | |
download | scintilla-mirror-1e79a7c53fbfd7481e26f92037de92597dedaf79.tar.gz |
Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 0aca39fdc..6b3489349 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -924,7 +924,7 @@ void ScintillaWin::MoveImeCarets(Sci::Position offset) { void ScintillaWin::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; @@ -1055,7 +1055,7 @@ void ScintillaWin::AddWString(std::wstring_view wsv) { const size_t ucWidth = UTF16CharLength(wsv[i]); const std::string docChar = StringEncode(wsv.substr(i, ucWidth), codePage); - AddCharUTF(docChar.c_str(), static_cast<unsigned int>(docChar.size())); + InsertCharacter(docChar); i += ucWidth; } } @@ -1104,7 +1104,7 @@ sptr_t ScintillaWin::HandleCompositionInline(uptr_t, sptr_t lParam) { const size_t ucWidth = UTF16CharLength(wsv[i]); const std::string docChar = StringEncode(wsv.substr(i, ucWidth), codePage); - AddCharUTF(docChar.c_str(), static_cast<unsigned int>(docChar.size())); + InsertCharacter(docChar); DrawImeIndicator(imeIndicator[i], static_cast<unsigned int>(docChar.size())); i += ucWidth; |