ctlIME // Highlight the marked range.

This commit is contained in:
ShikiSuen 2022-09-10 21:44:34 +08:00
parent d52678c959
commit fc976a6363
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ extension ctlInputMethod {
/// 0 replacementRangeNSNotFound
///
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