When aw-switch-buffer-other-window is executed, it switches to the selected window, changes the buffer, and then switches back. If the buffer-switching function is canceled, the window won't get switched back. Using unwind-protect ensures that the function ends with the starting window selected.old-master
parent
a2f1dd5c28
commit
9ca16c6bc3
1 changed files with 4 additions and 3 deletions
Loading…
Reference in new issue