diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-01-03 08:20:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 08:20:20 -0700 |
commit | 5eed3e741b39a7e52888b0400ba63a2ea70f4dac (patch) | |
tree | 37162d395fe4794a0e70e1243db26bfc0d4fe35f /runtime/lua/vim/diagnostic.lua | |
parent | 5b22b32e50858b781eb2658ba099eaffaa5ea13b (diff) | |
download | rneovim-5eed3e741b39a7e52888b0400ba63a2ea70f4dac.tar.gz rneovim-5eed3e741b39a7e52888b0400ba63a2ea70f4dac.tar.bz2 rneovim-5eed3e741b39a7e52888b0400ba63a2ea70f4dac.zip |
fix(diagnostic): revert notification on missing diagnostics (#21632)
This reverts a change introduced in
4ace9e7e417fe26c8b73ff1d6042e6e4f3df9ebf.
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r-- | runtime/lua/vim/diagnostic.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index e2eb952eca..f41f4a9c68 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -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 |