mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-12-22 21:34:54 +01:00
fix: detach with buf manager
This commit is contained in:
parent
2391b3c4fd
commit
3a40a01fb5
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue