Skip to content

Commit 3590d80

Browse files
committed
fix half-way commit text
1 parent bafe97f commit 3590d80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rime/gear/ascii_composer.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ void AsciiComposer::SwitchAsciiMode(bool ascii_mode,
224224
[this](Context* ctx) { OnContextUpdate(ctx); });
225225
}
226226
} else if (style == kAsciiModeSwitchCommitText) {
227-
ctx->ConfirmCurrentSelection();
227+
while (!ctx->input().empty())
228+
ctx->ConfirmCurrentSelection();
228229
} else if (style == kAsciiModeSwitchCommitCode) {
229230
ctx->ClearNonConfirmedComposition();
230231
ctx->Commit();

0 commit comments

Comments
 (0)