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