From 17078b97cfdef8625ce91508af9815003f29074f Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 4 Sep 2022 17:10:27 +0800 Subject: [PATCH] KeyHandler // Clang-format. --- Source/Modules/ControllerModules/KeyHandler_Core.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/Modules/ControllerModules/KeyHandler_Core.swift b/Source/Modules/ControllerModules/KeyHandler_Core.swift index bf577bec..7eed670a 100644 --- a/Source/Modules/ControllerModules/KeyHandler_Core.swift +++ b/Source/Modules/ControllerModules/KeyHandler_Core.swift @@ -215,12 +215,9 @@ public class KeyHandler { let theCandidate: Megrez.Compositor.Candidate = .init(key: candidate.0, value: candidate.1) /// 必須先鞏固當前組字器游標上下文、以消滅意料之外的影響,但在內文組字區內就地輪替候選字詞時除外。 - if preConsolidate { - consolidateCursorContext(with: theCandidate) - } + if preConsolidate { consolidateCursorContext(with: theCandidate) } // 回到正常流程。 - if !compositor.overrideCandidate(theCandidate, at: actualCandidateCursor) { return } let previousWalk = compositor.walkedNodes // 開始爬軌。