InputHandler // Also update marker when previewing candidates.

This commit is contained in:
ShikiSuen 2023-03-25 20:13:09 +08:00
parent 650dbc13c8
commit a6542df9bc
1 changed files with 1 additions and 0 deletions

View File

@ -428,6 +428,7 @@ public class InputHandler: InputHandlerProtocol {
let inputting = generateStateOfInputting(sansReading: true) let inputting = generateStateOfInputting(sansReading: true)
theState.data.displayTextSegments = inputting.data.displayTextSegments theState.data.displayTextSegments = inputting.data.displayTextSegments
theState.data.cursor = inputting.cursor theState.data.cursor = inputting.cursor
theState.data.marker = inputting.marker
delegate.state = theState // switchState delegate.state = theState // switchState
delegate.setInlineDisplayWithCursor() delegate.setInlineDisplayWithCursor()
if delegate.clientMitigationLevel >= 2, theState.hasComposition { if delegate.clientMitigationLevel >= 2, theState.hasComposition {