Skip to content

Commit a8b0607

Browse files
CopilotWhiredPlanck
andcommitted
Fix prediction interference by checking hasMenu before committing
Co-authored-by: WhiredPlanck <47623588+WhiredPlanck@users.noreply.github.com>
1 parent 0aefc60 commit a8b0607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
422422
if (newSelStart != newSelEnd) return
423423
if (candidatesStart == candidatesEnd) {
424424
postRimeJob {
425-
if (statusCached.isComposing) {
425+
if (statusCached.isComposing && !hasMenu) {
426426
Timber.d("handleCursorUpdate: commit composition")
427427
commitComposition()
428428
}

0 commit comments

Comments
 (0)