Work on delete function

master
Bryan 2024-10-20 08:56:49 -06:00
parent f320855013
commit 76d513e429
1 changed files with 1 additions and 2 deletions

View File

@ -54,8 +54,7 @@ end
---@param n integer ---@param n integer
function M.func.file_del(n) function M.func.file_del(n)
local idx = set.index(M.listing[0], M.listing[0][n]) vim.print(M.listing.bufnrs[n])
vim.print(M.listing.bufnrs[idx])
vim.cmd("Bd " .. tostring(M.listing.paths[n])) vim.cmd("Bd " .. tostring(M.listing.paths[n]))
table.remove(M.listing, n) table.remove(M.listing, n)
require("rabbit").Redraw() require("rabbit").Redraw()