Skip to content

Commit 78f7351

Browse files
committed
☕ modify to match gen-function.ts
1 parent 6695fef commit 78f7351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.scripts/gen-option/gen-option.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ for (const vimHelpDownloadUrl of vimHelpDownloadUrls) {
3636
console.log(`Download from ${vimHelpDownloadUrl}`);
3737
}
3838
const vimHelps = await Promise.all(vimHelpDownloadUrls.map(downloadString));
39-
const vimDefs = vimHelps.map(parse).flat();
39+
const vimDefs = parse(vimHelps.join("\n"));
4040
const vimOptionSet = new Set(vimDefs.map((def) => def.name)).difference(
4141
manualOptionSet,
4242
);
@@ -48,7 +48,7 @@ for (const nvimHelpDownloadUrl of nvimHelpDownloadUrls) {
4848
console.log(`Download from ${nvimHelpDownloadUrl}`);
4949
}
5050
const nvimHelps = await Promise.all(nvimHelpDownloadUrls.map(downloadString));
51-
const nvimDefs = nvimHelps.map(parse).flat();
51+
const nvimDefs = parse(nvimHelps.join("\n"));
5252
const nvimOptionSet = new Set(nvimDefs.map((def) => def.name)).difference(
5353
manualOptionSet,
5454
);

0 commit comments

Comments
 (0)