Skip to content

Commit

Permalink
fix half-way commit text
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn committed Nov 27, 2023
1 parent bafe97f commit 5f2df89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rime/gear/ascii_composer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ void AsciiComposer::SwitchAsciiMode(bool ascii_mode,
}
} else if (style == kAsciiModeSwitchCommitText) {
ctx->ConfirmCurrentSelection();
if (!ctx->input().empty())
ctx->Commit();
} else if (style == kAsciiModeSwitchCommitCode) {
ctx->ClearNonConfirmedComposition();
ctx->Commit();
Expand Down

0 comments on commit 5f2df89

Please sign in to comment.