Skip to content

Commit 5f2df89

Browse files
committed
fix half-way commit text
1 parent bafe97f commit 5f2df89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rime/gear/ascii_composer.cc

+2
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ void AsciiComposer::SwitchAsciiMode(bool ascii_mode,
225225
}
226226
} else if (style == kAsciiModeSwitchCommitText) {
227227
ctx->ConfirmCurrentSelection();
228+
if (!ctx->input().empty())
229+
ctx->Commit();
228230
} else if (style == kAsciiModeSwitchCommitCode) {
229231
ctx->ClearNonConfirmedComposition();
230232
ctx->Commit();

0 commit comments

Comments
 (0)