mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14: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
|
if buf_manager.map_rev[selected.name] ~= nil then
|
||||||
vim.ui.input({ prompt = "detach from '" .. selected.name .. "'?" }, function (choice)
|
vim.ui.input({ prompt = "detach from '" .. selected.name .. "'?" }, function (choice)
|
||||||
if not vim.startswith(string.lower(choice), "y") then return end
|
if not vim.startswith(string.lower(choice), "y") then return end
|
||||||
if not CODEMP.workspace:detach(selected.name) then
|
buf_manager.detach(selected.name)
|
||||||
print(" /!\\ dangling reference, detach incomplete")
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue