delete term buffers on clear_all

This commit is contained in:
James Trew 2021-08-05 09:17:53 -04:00
parent 595bbaba29
commit 37aa813a67

View File

@ -74,6 +74,9 @@ end
M.clear_all = function()
log.trace("clear_all(): Clearing all terminals.")
for _, term in ipairs(terminals) do
vim.api.nvim_buf_delete(term.buf_id, { force = true })
end
terminals = {}
end