Skip to content

Commit

Permalink
fix(buffer): safe delete
Browse files Browse the repository at this point in the history
See #80
  • Loading branch information
rcarriga committed Apr 11, 2022
1 parent 486d6ad commit 9655936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/notify/service/buffer/init.lua
Expand Up @@ -72,7 +72,7 @@ function NotificationBuf:close(win)
if config.on_close() then
config.on_close()(win)
end
api.nvim_buf_delete(self._buffer, { force = true })
pcall(api.nvim_buf_delete, self._buffer, { force = true })
end)
end

Expand Down

0 comments on commit 9655936

Please sign in to comment.