From 628fbdd8e045a0fea8d71b2c42c1ed0972e55a0a Mon Sep 17 00:00:00 2001 From: nekowasabi Date: Sat, 7 Dec 2024 16:31:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20split=E6=99=82=E3=80=81sendprompt?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=81=A8=E4=BD=99=E8=A8=88=E3=81=AAaider?= =?UTF-8?q?=E3=82=A6=E3=82=A4=E3=83=B3=E3=83=89=E3=82=A6=E3=81=8C=E9=96=8B?= =?UTF-8?q?=E3=81=84=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=81=93=E3=81=A8?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=20:bug:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- denops/aider/bufferOperation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/denops/aider/bufferOperation.ts b/denops/aider/bufferOperation.ts index 436e494..dabc4c1 100644 --- a/denops/aider/bufferOperation.ts +++ b/denops/aider/bufferOperation.ts @@ -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); @@ -162,7 +163,7 @@ export async function openFloatingWindowWithSelectedCode( await n.nvim_buf_set_keymap(denops, bufnr, "n", "q", "AiderHideVisualSelectFloatingWindow", { silent: true, }); - await n.nvim_buf_set_keymap(denops, bufnr, "n", "", "AiderSendPromptByBufferAiderRun", { + await n.nvim_buf_set_keymap(denops, bufnr, "n", "", "AiderSendPromptByBuffer", { silent: true, }); }