Work on delete function
parent
f320855013
commit
76d513e429
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue