diff options
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); } } } |