Skip to content

Commit 3cafbf2

Browse files
committed
🐛 Fix FallRestore
1 parent da1aa06 commit 3cafbf2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

denops/fall/main/picker.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type Context = {
3535
readonly name: string;
3636
readonly cmdline: string;
3737
readonly collectedItems: readonly Item[];
38-
readonly context: PickerContext;
38+
readonly restoreContext: PickerContext;
3939
};
4040

4141
let previousContext: Context | undefined;
@@ -73,6 +73,7 @@ async function restore(
7373
name,
7474
cmdline,
7575
collectedItems,
76+
restoreContext,
7677
} = previousContext;
7778
const source: Source = {
7879
name,
@@ -81,7 +82,10 @@ async function restore(
8182
},
8283
};
8384
try {
84-
return await internalStart(denops, source, cmdline, conf, options);
85+
return await internalStart(denops, source, cmdline, conf, {
86+
...options,
87+
restoreContext,
88+
});
8589
} catch (err) {
8690
if (err instanceof DOMException && err.name === "AbortError") return;
8791
const m = err.message ?? err;
@@ -298,7 +302,7 @@ async function internalStart(
298302
name: source.name,
299303
cmdline,
300304
collectedItems: sourcePicker.collectedItems,
301-
context: sourcePicker.context,
305+
restoreContext: sourcePicker.context,
302306
};
303307
}
304308
}

0 commit comments

Comments
 (0)