Skip to content

Commit

Permalink
웨일 구버전에서의 오류 케이스 사례를 참고하여, NSRange의 length를 0으로 재수정
Browse files Browse the repository at this point in the history
(참고: #855 (comment))
  • Loading branch information
saturnsky committed Nov 24, 2022
1 parent e2de659 commit 548b740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OSXCore/InputReceiver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ extension InputReceiver { // IMKServerInput
dlog(DEBUG_LOGGING, "LOGGING::COMMIT::%lu:%lu:%@", range.location, range.length, commitString)
// NSLog("range1 \(range)")글
if range.length == 0 {
range = NSRange(location: NSNotFound, length: NSNotFound)
range = NSRange(location: NSNotFound, length: 0)
}
// NSLog("commit \(commitString) to \(range)")
controller.client().insertText(commitString, replacementRange: range)
Expand Down

0 comments on commit 548b740

Please sign in to comment.