Dear Maintainer,
I am sorry for this bug report because it occurs on some rare occurence and I
don't have a scenario to reproduce it. Yet it's annoying enough to deserve a
bug report. Feel free to close it as unreproduceable ;).
With the arrival of LSP I switched my configuration from ALE to the builtin LSP
for linting and so on. I made this switch some days after the release of neovim
0.5.0 ; since that time I have remarked that sometimes (I'd say 2 or 3 times a
month), when I undo my changes (not just one press of 'u' multiple presses), it
results in a mix of old and new changes.
When I don't use the LSP, I don't have the issue (but I don't know if it is
because I don't use it or because I have been lucky).
For the record I am usualy editing a python file with pylsp.