We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d7821 commit e60b1c2Copy full SHA for e60b1c2
macosfrontend/macosfrontend.swift
@@ -30,6 +30,8 @@ public func setStatusItemMode(_ mode: Int32) {
30
31
private func commitString(_ client: IMKTextInput, _ string: String) {
32
client.insertText(string, replacementRange: NSRange(location: NSNotFound, length: NSNotFound))
33
+ // Without it currentPreedit.count in commitAndSetPreeditSync will be wrong with pinyin prediction.
34
+ currentPreedit = ""
35
}
36
37
private func setPreedit(_ client: IMKTextInput, _ preedit: String, _ caretPosUtf8: Int) {
0 commit comments