You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: After deleting lines in quickfix buffer jumps to remaining entries in quickfix are inconsistent #60
If you delete entries from the quickfix window, then try to jump to an entry from the quickfix by pressing enter, the entry you jump to is not the one selected, but the one that was in that position before being deleted.
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
Open quickfix
Delete some entries in the quickfix list.
Press enter on a quickfix entry that is in a new location after the previous entries were deleted
See that the entry you jumped to is not the one you selected
Expected Behavior
I expect to delete lines in the quickfix window that I don't care about, then be able to jump to the remaining entries.
Minimal example file
No response
Minimal init.lua
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{
"stevearc/quicker.nvim",
config=function()
require("quicker").setup({
-- add your config here
})
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
@chancez I think you have to :w<CR> once for it to repopulate the entries to quickfix list after entry deletion. After writing, it seems to work correctly. I feel this is an expected and right behaviour.
If you don't like having to :w after changing, you could try ~/.vim/after/ftplugin/qf.vim with
nnoremap <buffer> <CR> :<C-u>w<CR><CR>
That way it writes right before jumping to an entry. But that won't cover other bindings for :cnext etc. Instead, you could make it recompute on every delete:
Activity
231tr0n commentedon Apr 27, 2026
@chancez I think you have to
:w<CR>once for it to repopulate the entries to quickfix list after entry deletion. After writing, it seems to work correctly. I feel this is an expected and right behaviour.idbrii commentedon Jul 10, 2026
If you don't like having to
:wafter changing, you could try ~/.vim/after/ftplugin/qf.vim withThat way it writes right before jumping to an entry. But that won't cover other bindings for
:cnextetc. Instead, you could make it recompute on every delete: