mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-22 05:29:44 +02:00
98e6c119f5
When editing a commit, the index of the current commit can change; for example, when merge commits are involved, or when working with stacked branches where "update-ref" commands may be added above the selected commit. Reselect the current commit after pressing "e"; this requires doing the refresh blocking on the main thread. (Another option that I considered was to use a SYNC refresh, and then select the new line with an OnUIThread inside the Then function. This also works, but results in a very visible lag.)