Skip to content

Commit

Permalink
fix: split時、sendpromptすると余計なaiderウインドウが開いてしまうことを修正 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowasabi committed Dec 7, 2024
1 parent 1069b7c commit 628fbdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion denops/aider/bufferOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export async function sendPromptByBuffer(denops: Denops, openBufferType: BufferL
await denops.cmd("bdelete!");

if (openBufferType === "floating") {
await denops.cmd("AiderRun");
await sendPromptFromFloatingWindow(denops, bufferContent);
} else {
await sendPromptFromSplitWindow(denops, bufferContent);
Expand Down Expand Up @@ -162,7 +163,7 @@ export async function openFloatingWindowWithSelectedCode(
await n.nvim_buf_set_keymap(denops, bufnr, "n", "q", "<cmd>AiderHideVisualSelectFloatingWindow<CR>", {
silent: true,
});
await n.nvim_buf_set_keymap(denops, bufnr, "n", "<cr>", "<cmd>AiderSendPromptByBuffer<cr><cmd>AiderRun<cr>", {
await n.nvim_buf_set_keymap(denops, bufnr, "n", "<cr>", "<cmd>AiderSendPromptByBuffer<cr>", {
silent: true,
});
}
Expand Down

0 comments on commit 628fbdd

Please sign in to comment.