Skip to content

Commit c40b7e2

Browse files
committed
Do NOT invoke get on batch mode
1 parent aa977b0 commit c40b7e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

denops/askpass/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export async function main(denops: Denops): Promise<void> {
2121
);
2222
});
2323
const askpass = path.fromFileUrl(new URL("./cli.ts", import.meta.url));
24+
const display = await vars.e.get(denops, "DISPLAY", "dummy:0");
2425
await batch.batch(denops, async (denops) => {
2526
await vars.e.set(denops, "ASKPASS", askpass);
2627
if (!disableSsh) {
@@ -29,7 +30,7 @@ export async function main(denops: Denops): Promise<void> {
2930
await vars.e.set(
3031
denops,
3132
"DISPLAY",
32-
await vars.e.get(denops, "DISPLAY", "dummy:0"),
33+
display,
3334
);
3435
await vars.e.set(denops, "SSH_ASKPASS", askpass);
3536
}

0 commit comments

Comments
 (0)