casouri / vundo

Visualize the undo tree.
413 stars 20 forks source link

Restore selected window after killing vundo buffer #55

Closed wyuenho closed 1 year ago

wyuenho commented 1 year ago

It is not always the case that Emacs will select the original buffer's window after killing the vundo buffer and window, this is especially true when using a window manager such as windows-purpose. This PR makes sure the original buffer's window is reselected after killing vundo's window.

ideasman42 commented 1 year ago

While this seems reasonable select-window check check if the window is nil before calling as there is a small possibility no window can be found for the buffer.

wyuenho commented 1 year ago

done

casouri commented 1 year ago

Thanks! Could you merge the two commits and force push? Then I can edit the commit message to comply to GNU format.

wyuenho commented 1 year ago

done

casouri commented 1 year ago

Merged, thanks!