Repo // Simplify conditions for updatePopupDisplayWithCursor().
This commit is contained in:
parent
d271ec1a14
commit
2d3d0d3fc2
|
@ -433,9 +433,7 @@ public class InputHandler: InputHandlerProtocol {
|
|||
theState.data.marker = inputting.marker
|
||||
delegate.state = theState // 直接就地取代,不經過 switchState 處理,免得選字窗被重新載入。
|
||||
delegate.setInlineDisplayWithCursor()
|
||||
if delegate.clientMitigationLevel >= 2, theState.hasComposition {
|
||||
delegate.updatePopupDisplayWithCursor()
|
||||
}
|
||||
delegate.updatePopupDisplayWithCursor()
|
||||
}
|
||||
|
||||
// MARK: - Extracted methods and functions (Tekkon).
|
||||
|
|
|
@ -140,9 +140,7 @@ extension SessionCtl: CtlCandidateDelegate {
|
|||
state.data.cursor = 0
|
||||
}
|
||||
setInlineDisplayWithCursor()
|
||||
if clientMitigationLevel >= 2, state.hasComposition {
|
||||
updatePopupDisplayWithCursor()
|
||||
}
|
||||
updatePopupDisplayWithCursor()
|
||||
default: break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue