diff options
Diffstat (limited to 'src/ScintillaBase.cxx')
| -rw-r--r-- | src/ScintillaBase.cxx | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 571ffc8de..110e06489 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -78,11 +78,12 @@ void ScintillaBase::Finalise() {  }  void ScintillaBase::InsertCharacter(std::string_view sv, CharacterSource charSource) { -	const bool isFillUp = ac.Active() && ac.IsFillUpChar(sv[0]); +	const bool acActive = ac.Active(); +	const bool isFillUp = acActive && ac.IsFillUpChar(sv[0]);  	if (!isFillUp) {  		Editor::InsertCharacter(sv, charSource);  	} -	if (ac.Active()) { +	if (acActive) {  		AutoCompleteCharacterAdded(sv[0]);  		// For fill ups add the character after the autocompletion has  		// triggered so containers see the key so can display a calltip. | 
