Open ibrokemypie opened 2 months ago
This is an intentional gap at the moment. Saving the quickfix buffer actually calls setqflist
which will generate an entirely new quickfix buffer. There may be a way to keep the history, but it will require a pile of hacks.
Neovim version (nvim -v)
v0.10.1
Operating system/version
NixOS 24.11 (Vicuna)
Describe the bug
After saving changes to the quickfix buffer, the undo history is lost, and hitting
u
says that I am already at the oldest change. Before saving the changes undo works as expected.What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
:grep file
:%s/ file/ folder/
:w
u
Expected Behavior
All instances of
file
that were replaced withfolder
are reverted back the way they were in the quickfix buffer. The buffer is marked as modified. The actual contents of the files that were changed when saving the quickfix buffer are so far unmodified, but saving the buffer now would return them back the way they were before running the replacement.Minimal example file
Minimal init.lua
Additional context
No response