neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 5eed3e741b39a7e52888b0400ba63a2ea70f4dac
parent 5b22b32e50858b781eb2658ba099eaffaa5ea13b
Author: Gregory Anders <8965202+gpanders@users.noreply.github.com>
Date:   Tue,  3 Jan 2023 08:20:20 -0700

fix(diagnostic): revert notification on missing diagnostics (#21632)

This reverts a change introduced in
4ace9e7e417fe26c8b73ff1d6042e6e4f3df9ebf.
Diffstat:
Mruntime/lua/vim/diagnostic.lua | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git 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