Skip to content

Commit 9e98389

Browse files
author
Sebastian Lyng Johansen
authoredDec 22, 2022
fix(ui): fix buffer being properly deleted (#112)
1 parent 3f60f2d commit 9e98389

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎lua/lazy/view/init.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,12 @@ function M.show(mode)
102102
M._buf = nil
103103
vim.diagnostic.reset(Config.ns, buf)
104104
vim.schedule(function()
105-
if vim.api.nvim_buf_is_valid(buf) then
106-
vim.api.nvim_buf_delete(buf, { force = true })
107-
end
108105
if vim.api.nvim_win_is_valid(win) then
109106
vim.api.nvim_win_close(win, true)
110107
end
108+
if vim.api.nvim_buf_is_valid(buf) then
109+
vim.api.nvim_buf_delete(buf, { force = true })
110+
end
111111
end)
112112
end
113113

0 commit comments

Comments
 (0)
Please sign in to comment.