Work on delete function
parent
92df0c19e6
commit
71b42d28e5
|
|
@ -37,7 +37,7 @@ local get_buffers = function()
|
|||
end)
|
||||
|
||||
for _, b in ipairs(bufs) do
|
||||
set.add(M.listing.paths, b.name)
|
||||
set.add(M.listing.paths, b.bufnr)
|
||||
set.add(M.listing[0], b.name)
|
||||
end
|
||||
end
|
||||
|
|
@ -48,7 +48,7 @@ end
|
|||
|
||||
---@param n integer
|
||||
function M.func.file_del(n)
|
||||
vim.cmd("bd " .. M.listing[0][n])
|
||||
vim.cmd("bd " .. tostring(M.listing.paths[n]))
|
||||
table.remove(M.listing, n)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue