mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-27 23:08:02 +02:00
We keep the same commit selected (even though its index changed because of the added update-ref todo), which is nice; however, the main view shows the diff of the wrong commit, which is very confusing. I'm suprised that this hasn't been noticed yet. The reason why this happens is that we first do the refresh, which includes re-rendering the main view diff (with the same commit index as before, so the wrong one), and then we restore the correct commit index but don't render the main view again.