diff options
author | Zufu Liu <unknown> | 2019-06-30 08:34:46 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2019-06-30 08:34:46 +1000 |
commit | d7e2afd1f88bf735b010461ff505470bfa468547 (patch) | |
tree | 0305fc8fd126909438c6da42cf90d53a3201b8c2 /src/ScintillaBase.cxx | |
parent | 24bff87107d89a09e724993e053e7151945596e8 (diff) | |
download | scintilla-mirror-d7e2afd1f88bf735b010461ff505470bfa468547.tar.gz |
Bug [#2038]. Source of input reported in SCN_CHARADDED.
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT,
or SC_CHARACTERSOURCE_IME_RESULT.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 6799dfd06..296f5f8e6 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -80,20 +80,20 @@ void ScintillaBase::Finalise() { } void ScintillaBase::AddCharUTF(const char *s, unsigned int len, bool /*treatAsDBCS*/) { - InsertCharacter(std::string_view(s, len)); + InsertCharacter(std::string_view(s, len), CharacterSource::directInput); } -void ScintillaBase::InsertCharacter(std::string_view sv) { +void ScintillaBase::InsertCharacter(std::string_view sv, CharacterSource charSource) { const bool isFillUp = ac.Active() && ac.IsFillUpChar(sv[0]); if (!isFillUp) { - Editor::InsertCharacter(sv); + Editor::InsertCharacter(sv, charSource); } if (ac.Active()) { AutoCompleteCharacterAdded(sv[0]); // For fill ups add the character after the autocompletion has // triggered so containers see the key so can display a calltip. if (isFillUp) { - Editor::InsertCharacter(sv); + Editor::InsertCharacter(sv, charSource); } } } |