There was an error while loading. Please reload this page.
2 parents 158ae75 + 8ca2c8b commit d593d79Copy full SHA for d593d79
1 file changed
denops/skkeleton/function/common.ts
@@ -73,7 +73,7 @@ export async function newline(context: Context) {
73
}
74
75
76
-export function cancel(context: Context) {
+export async function cancel(context: Context) {
77
const state = context.state;
78
if (
79
state.type === "input" &&
@@ -83,12 +83,12 @@ export function cancel(context: Context) {
83
context.kakutei("\x03");
84
85
if (config.immediatelyCancel) {
86
- initializeState(context.state);
+ await initializeStateWithAbbrev(context);
87
return;
88
89
switch (state.type) {
90
case "input":
91
- initializeState(state);
92
break;
93
case "henkan":
94
context.state.type = "input";
0 commit comments