Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cancelled autostash resulting in stuck inline status (#3860)
- **PR Description** When switching branches, there is a "Checking out" inline status displayed next to the branch (but only sometimes? I think if the action completes too quickly there is no status). If it does get displayed and the checkout results in an autostash confirmation prompt, pressing escape to cancel the action will cancel the checkout and close the prompt. However, the inline status will still be displayed next to the branch and doesn't go away by itself. Performing a manual UI refresh (`R`) fixes the state. If the prompt was confirmed instead, then this issue would not happen. Reproduction: ```bash git init echo -e "a\n\nb" > file git add . git commit -m "add file" echo -e "a\n\nc" > file git add . git commit -m "edit last line" git checkout -b dev HEAD~ echo -e "b\n\nb" > file lazygit ``` Switch to the other branch in the branches panel and press escape on the prompt. The "Checking out" inline status should be stuck.
- Loading branch information