neovim

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

commit fd902b1cb2463e220e5bd5fe37a0cfdd259ff35a
parent 12901447cb21c7d6628c7c7e60e1bda2e5c0b793
Author: Jeremy Fleischman <jeremyfleischman@gmail.com>
Date:   Thu,  5 Dec 2024 13:59:33 -0800

fix(diagnostic): only store quickfix id when creating a new one #31466

The old code would always update `_qf_id` with the current quickfix,
even if you're currently looking at a completely different,
non-diagnostics quickfix list. This completely defeats the intent of
<https://github.com/neovim/neovim/pull/30868>, whoops!
Diffstat:
Mruntime/lua/vim/diagnostic.lua | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua @@ -867,7 +867,9 @@ local function set_list(loclist, opts) }) -- Get the id of the newly created quickfix list. - _qf_id = vim.fn.getqflist({ id = 0 }).id + if _qf_id == nil then + _qf_id = vim.fn.getqflist({ id = 0 }).id + end end if open then api.nvim_command(loclist and 'lwindow' or 'botright cwindow')