fix: detach with buf manager

This commit is contained in:
əlemi 2024-09-26 03:44:42 +02:00
parent 2391b3c4fd
commit 3a40a01fb5
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -168,9 +168,7 @@ M.add = function(state, path, extra)
if buf_manager.map_rev[selected.name] ~= nil then
vim.ui.input({ prompt = "detach from '" .. selected.name .. "'?" }, function (choice)
if not vim.startswith(string.lower(choice), "y") then return end
if not CODEMP.workspace:detach(selected.name) then
print(" /!\\ dangling reference, detach incomplete")
end
buf_manager.detach(selected.name)
end)
end
end