This commit is contained in:
FugoTakefusa 2025-12-03 17:05:39 +13:00
parent cf08c3afa4
commit ccadf86bd6
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ local function toggle(bufname, open_window_func)
if bufnr ~= -1 then if bufnr ~= -1 then
-- Remove buffer from memory -- Remove buffer from memory
vim.api.nvim_buf_delete(bufnr, { force = false }) vim.api.nvim_buf_delete(bufnr, { force = true })
-- get window number where a buffer attaches to -- get window number where a buffer attaches to
local wins = vim.fn.win_findbuf(bufnr) local wins = vim.fn.win_findbuf(bufnr)
for _, win in ipairs(wins) do for _, win in ipairs(wins) do