Work on delete function
parent
44eb89f8ed
commit
f320855013
|
|
@ -50,15 +50,15 @@ end
|
|||
|
||||
function M.evt.RabbitEnter()
|
||||
get_buffers()
|
||||
-- vim.print(M.listing[0])
|
||||
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.cmd("bd " .. tostring(M.listing.paths[n]))
|
||||
-- table.remove(M.listing, n)
|
||||
vim.cmd("Bd " .. tostring(M.listing.paths[n]))
|
||||
table.remove(M.listing, n)
|
||||
require("rabbit").Redraw()
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Loading…
Reference in New Issue