Skip to content

Commit d593d79

Browse files
authored
Merge pull request #242 from yoshphys/fix/cancel-abbrev-mode-reset
fix: abbrevモードでのキャンセル後にモードをhiraに戻す
2 parents 158ae75 + 8ca2c8b commit d593d79

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

denops/skkeleton/function/common.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function newline(context: Context) {
7373
}
7474
}
7575

76-
export function cancel(context: Context) {
76+
export async function cancel(context: Context) {
7777
const state = context.state;
7878
if (
7979
state.type === "input" &&
@@ -83,12 +83,12 @@ export function cancel(context: Context) {
8383
context.kakutei("\x03");
8484
}
8585
if (config.immediatelyCancel) {
86-
initializeState(context.state);
86+
await initializeStateWithAbbrev(context);
8787
return;
8888
}
8989
switch (state.type) {
9090
case "input":
91-
initializeState(state);
91+
await initializeStateWithAbbrev(context);
9292
break;
9393
case "henkan":
9494
context.state.type = "input";

0 commit comments

Comments
 (0)