Closed Marwes closed 6 years ago
Guessing its this change https://github.com/rust-lang/rust.vim/commit/f1d785a3135d3187f22d79823e0fa995cbcffdbc#diff-620e97ff3ec1f7b01a2d1f60373196cdR107 or perhaps the silent edit!
that was removed (no idea what that actually does though)?
Applied a fix in master, try it now please?
It works now! Thanks for the speedy fix!
Steps to reproduce:
Make a change in a file then save so rustfmt (on save) is run. Then undo the change.
Expected vs. actual behavior:
Undoing the change(s) should make the view stay at where the manual change was made. What happens instead is that the view jumps to the beginning of the file.
Bisected to one of the following commits (formatting was broken in many of them so I don't know which exactly).
a5290d6ec2e8da8474e8eaf3aa3b2847b7f66e97 f1d785a3135d3187f22d79823e0fa995cbcffdbc ba190eecc64a6c7103a569f23fb223f69e49869d ff54b40bbcb2034f98283fbe4bbccc0e9d57f6f4 6b4eb5d9ceb0b2437966adfcb1fd2064403cebc3 c7c99f3d8fcdbda1be03a7ebee109609605f681f aff86a1a11245bf7ad641c40a08b01922b59dc1f