diff --git a/Source/Modules/SessionCtl_HandleStates.swift b/Source/Modules/SessionCtl_HandleStates.swift index c0bf9eb3..fc5d1493 100644 --- a/Source/Modules/SessionCtl_HandleStates.swift +++ b/Source/Modules/SessionCtl_HandleStates.swift @@ -73,7 +73,7 @@ public extension SessionCtl { inputHandler?.clear() case .ofInputting: candidateUI?.visible = false - commit(text: newState.textToCommit) + if !newState.textToCommit.isEmpty { commit(text: newState.textToCommit) } setInlineDisplayWithCursor() // 會在工具提示為空的時候自動消除顯示。 showTooltip(newState.tooltip, duration: newState.tooltipDuration)