Skip to content

Commit

Permalink
fix: Aider終了時の存在チェックを追加 ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowasabi committed Dec 7, 2024
1 parent 9f6c0dd commit 1069b7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion denops/aider/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,12 @@ export async function main(denops: Denops): Promise<void> {
{ pattern: "[<f-args>]" },
),

await command("exit", "0", () => buffer.exitAiderBuffer(denops)),
await command("exit", "0", async () => {
const aiderBuffer = await buffer.getAiderBuffer(denops);
if (aiderBuffer) {
buffer.exitAiderBuffer(denops);
}
}),

await command(
"visualTextWithPrompt",
Expand Down

0 comments on commit 1069b7c

Please sign in to comment.