Skip to content

Commit 8f62392

Browse files
CopilotWhiredPlanck
andcommitted
Change to clear composition instead of commit when out of sync
Co-authored-by: WhiredPlanck <47623588+WhiredPlanck@users.noreply.github.com>
1 parent 5fc0215 commit 8f62392

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/com/osfans/trime/ime/core/TrimeInputMethodService.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
422422
if (newSelStart != newSelEnd) return
423423
if (candidatesStart == candidatesEnd) {
424424
postRimeJob {
425-
if (statusCached.isComposing && !hasMenu) {
426-
Timber.d("handleCursorUpdate: commit composition")
427-
commitComposition()
425+
if (statusCached.isComposing || hasMenu) {
426+
Timber.d("handleCursorUpdate: clear composition")
427+
clearComposition()
428428
}
429429
}
430430
return

0 commit comments

Comments
 (0)