Skip to content

Commit

Permalink
Clear composition when switch to ascii mode by vim mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Mar 5, 2024
1 parent 4730f64 commit 96c25db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ BOOL RimeWithWeaselHandler::ProcessKeyEvent(KeyEvent keyEvent,
if (isVimBackInCommandMode && RimeGetOption(_s(ipc_id), "vim_mode") &&
!RimeGetOption(_s(ipc_id), "ascii_mode")) {
RimeSetOption(_s(ipc_id), "ascii_mode", True);
RimeClearComposition(_s(ipc_id));
}
}
_Respond(ipc_id, eat);
Expand Down

0 comments on commit 96c25db

Please sign in to comment.