InputState // SwiftLint: NSMake???? -> NS????.

This commit is contained in:
ShikiSuen 2022-04-11 08:22:13 +08:00
parent d380e7c202
commit 2194f503a8
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ class InputState: NSObject {
self.markerIndex = markerIndex
let begin = min(cursorIndex, markerIndex)
let end = max(cursorIndex, markerIndex)
markedRange = NSMakeRange(Int(begin), Int(end - begin))
markedRange = NSRange(location: Int(begin), length: Int(end - begin))
self.readings = readings
super.init(composingBuffer: composingBuffer, cursorIndex: cursorIndex)
}