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 a72267d32..1e7695d5f 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -79,20 +79,20 @@ void ScintillaBase::Finalise() { } void ScintillaBase::AddCharUTF(const char *s, unsigned int len, bool /*treatAsDBCS*/) { - InsertCharacter(s, len); + InsertCharacter(s, len, CharacterSource::directInput); } -void ScintillaBase::InsertCharacter(const char *s, unsigned int len) { +void ScintillaBase::InsertCharacter(const char *s, unsigned int len, CharacterSource charSource) { const bool isFillUp = ac.Active() && ac.IsFillUpChar(s[0]); if (!isFillUp) { - Editor::InsertCharacter(s, len); + Editor::InsertCharacter(s, len, charSource); } if (ac.Active()) { AutoCompleteCharacterAdded(s[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(s, len); + Editor::InsertCharacter(s, len, charSource); } } } |