From 272bfef22718c6aaef80bb878768f2c1c8552cc5 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 14 Oct 2022 16:23:18 +0800 Subject: [PATCH] SessionCtl // Fix a conditioning in candidatePairSelected(). --- Source/Modules/SessionCtl_Delegates.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/Modules/SessionCtl_Delegates.swift b/Source/Modules/SessionCtl_Delegates.swift index 19396791..4645ed2d 100644 --- a/Source/Modules/SessionCtl_Delegates.swift +++ b/Source/Modules/SessionCtl_Delegates.swift @@ -89,10 +89,12 @@ extension SessionCtl: CtlCandidateDelegate { if [.ofCandidates, .ofSymbolTable].contains(state.type) { let selectedValue = state.candidates[index] - inputHandler.consolidateNode( - candidate: selectedValue, respectCursorPushing: true, - preConsolidate: PrefMgr.shared.consolidateContextOnCandidateSelection - ) + if state.type == .ofCandidates { + inputHandler.consolidateNode( + candidate: selectedValue, respectCursorPushing: true, + preConsolidate: PrefMgr.shared.consolidateContextOnCandidateSelection + ) + } let inputting = inputHandler.generateStateOfInputting()