Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
magit-section-post-command-hook: Skip menu work if wrong buffer selected
The command may have used `set-window-buffer' to change the window's buffer without changing the current buffer. Previously that would have resulted in an error because `magit-section-post-command-hook' was not prepared to handle this situation, now we simply skip the menu related work in this case. Also see #5098.
- Loading branch information