Skip to content

Commit 96fa9c7

Browse files
committed
fix: @files in prompt buffer should add file to the prompt buffer
1 parent cd0e2c6 commit 96fa9c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/enlighten/edit.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ function EnlightenEdit:_add_file_path(path, content)
468468
vim.list_extend(lines, content)
469469
table.insert(lines, "```")
470470

471-
buffer.insert_with_fold(self.target_buf, start_row, lines)
471+
buffer.insert_with_fold(self.prompt_buf, start_row, lines)
472472
end
473473

474474
return EnlightenEdit

0 commit comments

Comments
 (0)