From 2194f503a8a1d0392748629561390b23fcc1d4a7 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 11 Apr 2022 08:22:13 +0800 Subject: [PATCH] InputState // SwiftLint: NSMake???? -> NS????. --- 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 2d159521..7ea21974 100644 --- a/Source/Modules/ControllerModules/InputState.swift +++ b/Source/Modules/ControllerModules/InputState.swift @@ -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) }