Skip to content

Commit

Permalink
fix(ui): fix buffer being properly deleted (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Lyng Johansen committed Dec 22, 2022
1 parent 3f60f2d commit 9e98389
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/lazy/view/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ function M.show(mode)
M._buf = nil
vim.diagnostic.reset(Config.ns, buf)
vim.schedule(function()
if vim.api.nvim_buf_is_valid(buf) then
vim.api.nvim_buf_delete(buf, { force = true })
end
if vim.api.nvim_win_is_valid(win) then
vim.api.nvim_win_close(win, true)
end
if vim.api.nvim_buf_is_valid(buf) then
vim.api.nvim_buf_delete(buf, { force = true })
end
end)
end

Expand Down

0 comments on commit 9e98389

Please sign in to comment.