fix: dont delete buffer when detaching

This commit is contained in:
əlemi 2024-09-25 23:15:33 +02:00
parent 8a65380088
commit 33c08653fa
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -140,7 +140,6 @@ local function detach(name)
id_buffer_map[buffer] = nil
buffer_id_map[name] = nil
CODEMP.workspace:detach(name)
vim.api.nvim_buf_delete(buffer, {})
print(" -- detached from buffer " .. name)
require('codemp.window').update()