Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't try to reset state if last window is undefined
`old-selected-window` may return a frame instead of a window, or `nil` if there is not a previous window selection (e.g. at Emacs startup). In either of these cases, trying to find the old buffer and reset its state would produce an error, so do nothing instead.
- Loading branch information