diff --git a/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift b/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift index 0c23eb42..37f80e8d 100644 --- a/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift +++ b/Source/Modules/ControllerModules/ctlInputMethod_HandleStates.swift @@ -100,7 +100,7 @@ extension ctlInputMethod { /// 是 0 且取代範圍(replacementRange)為「NSNotFound」罷了。 /// 也就是說,內文組字區該在哪裡出現,得由客體軟體來作主。 client.setMarkedText( - state.attributedString, selectionRange: NSRange(location: state.data.u16Cursor, length: 0), + state.attributedString, selectionRange: NSRange(state.data.u16MarkedRange), replacementRange: NSRange(location: NSNotFound, length: NSNotFound) ) return