From 0da316f1a772b5c7d54da5ecf52d04a731ec0629 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Thu, 10 Feb 2022 19:08:07 +0800 Subject: [PATCH] InputState // Let PrefModule manage the kMaxMarkRangeLength. --- Source/Modules/ControllerModules/InputState.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/ControllerModules/InputState.swift b/Source/Modules/ControllerModules/InputState.swift index a39c038c..355ee4f0 100644 --- a/Source/Modules/ControllerModules/InputState.swift +++ b/Source/Modules/ControllerModules/InputState.swift @@ -150,7 +150,7 @@ class InputState: NSObject { // MARK: - private let kMinMarkRangeLength = 2 - private let kMaxMarkRangeLength = 6 + private let kMaxMarkRangeLength = Preferences.maxCandidateLength /// Represents that the user is marking a range in the composing buffer. @objc (InputStateMarking)