Skip to content

Commit 49eed41

Browse files
committed
feat: use versioned azkkc v0.10.0
1 parent cc99159 commit 49eed41

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Core/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let package = Package(
1414
)
1515
],
1616
dependencies: [
17-
.package(url: "https://github.com/azooKey/AzooKeyKanaKanjiConverter", branch: "b3ddfb236a998c85ce407744b49dec8f31d94ad5", traits: ["Zenzai"])
17+
.package(url: "https://github.com/azooKey/AzooKeyKanaKanjiConverter", .upToNextMinor(from: "0.10.0"), traits: ["Zenzai"])
1818
],
1919
targets: [
2020
.executableTarget(

azooKeyMac/InputController/SegmentsManager.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ final class SegmentsManager {
195195
/// 変換キーを押したタイミングで入力の区切りを示す
196196
@MainActor
197197
func insertCompositionSeparator(inputStyle: InputStyle, skipUpdate: Bool = false) {
198-
guard self.composingText.input.last?.piece != .endOfText else {
199-
// すでに末尾がendOfTextの場合は何もしない
198+
guard self.composingText.input.last?.piece != .compositionSeparator else {
199+
// すでに末尾がcompositionSeparatorの場合は何もしない
200200
return
201201
}
202-
self.composingText.insertAtCursorPosition([.init(piece: .endOfText, inputStyle: inputStyle)])
202+
self.composingText.insertAtCursorPosition([.init(piece: .compositionSeparator, inputStyle: inputStyle)])
203203
self.lastOperation = .insert
204204
if !skipUpdate {
205205
self.updateRawCandidate()
@@ -496,7 +496,7 @@ final class SegmentsManager {
496496
func getModifiedRomanCandidate(_ transform: (String) -> String) -> Candidate {
497497
let inputString = String(self.composingText.input.compactMap {
498498
switch $0.piece {
499-
case .endOfText: nil
499+
case .compositionSeparator: nil
500500
case .character(let c): c
501501
}
502502
})

0 commit comments

Comments
 (0)