InputState // SwiftLint: NSMake???? -> NS????.
This commit is contained in:
parent
6b9e775d06
commit
8d651739e4
|
@ -243,7 +243,7 @@ class InputState: NSObject {
|
||||||
self.markerIndex = markerIndex
|
self.markerIndex = markerIndex
|
||||||
let begin = min(cursorIndex, markerIndex)
|
let begin = min(cursorIndex, markerIndex)
|
||||||
let end = max(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
|
self.readings = readings
|
||||||
super.init(composingBuffer: composingBuffer, cursorIndex: cursorIndex)
|
super.init(composingBuffer: composingBuffer, cursorIndex: cursorIndex)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue