Work on delete function
parent
f320855013
commit
76d513e429
|
|
@ -54,8 +54,7 @@ end
|
|||
|
||||
---@param n integer
|
||||
function M.func.file_del(n)
|
||||
local idx = set.index(M.listing[0], M.listing[0][n])
|
||||
vim.print(M.listing.bufnrs[idx])
|
||||
vim.print(M.listing.bufnrs[n])
|
||||
vim.cmd("Bd " .. tostring(M.listing.paths[n]))
|
||||
table.remove(M.listing, n)
|
||||
require("rabbit").Redraw()
|
||||
|
|
|
|||
Loading…
Reference in New Issue