Skip to content

Commit

Permalink
fix(diagnostic): revert notification on missing diagnostics (neovim#2…
Browse files Browse the repository at this point in the history
…1632)

This reverts a change introduced in
4ace9e7.
  • Loading branch information
gpanders authored and yesean committed Mar 25, 2023
1 parent 511004d commit 9cb9805
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions runtime/lua/vim/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,6 @@ local function set_list(loclist, opts)
-- numbers beyond the end of the buffer
local diagnostics = get_diagnostics(bufnr, opts, false)
local items = M.toqflist(diagnostics)
if next(items) == nil then
vim.notify('No diagnostics available')
return
end
if loclist then
vim.fn.setloclist(winnr, {}, ' ', { title = title, items = items })
else
Expand Down

0 comments on commit 9cb9805

Please sign in to comment.