Repo // Simplify conditions for updatePopupDisplayWithCursor().

This commit is contained in:
ShikiSuen 2023-06-20 09:10:05 +08:00
parent d271ec1a14
commit 2d3d0d3fc2
2 changed files with 2 additions and 6 deletions

View File

@ -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).

View File

@ -140,9 +140,7 @@ extension SessionCtl: CtlCandidateDelegate {
state.data.cursor = 0
}
setInlineDisplayWithCursor()
if clientMitigationLevel >= 2, state.hasComposition {
updatePopupDisplayWithCursor()
}
updatePopupDisplayWithCursor()
default: break
}
}