Skip to content

Commit

Permalink
Do NOT invoke get on batch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdalisue committed May 8, 2023
1 parent aa977b0 commit c40b7e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion denops/askpass/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export async function main(denops: Denops): Promise<void> {
);
});
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) {
Expand All @@ -29,7 +30,7 @@ export async function main(denops: Denops): Promise<void> {
await vars.e.set(
denops,
"DISPLAY",
await vars.e.get(denops, "DISPLAY", "dummy:0"),
display,
);
await vars.e.set(denops, "SSH_ASKPASS", askpass);
}
Expand Down

0 comments on commit c40b7e2

Please sign in to comment.