Skip to content

Commit 44ff55b

Browse files
fix: prevent unexpected continuous commits from auto_select
1 parent fd40c58 commit 44ff55b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,10 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
572572

573573
fun commitText(text: String) {
574574
val ic = currentInputConnection ?: return
575+
val isComposing = rime.run { statusCached.isComposing }
576+
575577
// when composing text equals commit content, finish composing text as-is
576-
if (composingText == text) {
578+
if (composingText == text && !isComposing) {
577579
composingText = ""
578580
ic.finishComposingText()
579581
return

0 commit comments

Comments
 (0)