diff --git a/denops/askpass/main.ts b/denops/askpass/main.ts index 810ff3f..0e791cb 100644 --- a/denops/askpass/main.ts +++ b/denops/askpass/main.ts @@ -21,6 +21,7 @@ export async function main(denops: Denops): Promise { ); }); const askpass = path.fromFileUrl(new URL("./cli.ts", import.meta.url)); + const display = await vars.e.get(denops, "DISPLAY", "dummy:0"); await batch.batch(denops, async (denops) => { await vars.e.set(denops, "ASKPASS", askpass); if (!disableSsh) { @@ -29,7 +30,7 @@ export async function main(denops: Denops): Promise { await vars.e.set( denops, "DISPLAY", - await vars.e.get(denops, "DISPLAY", "dummy:0"), + display, ); await vars.e.set(denops, "SSH_ASKPASS", askpass); }