diff --git a/ace-window.el b/ace-window.el index fc8a592..1a24c7b 100644 --- a/ace-window.el +++ b/ace-window.el @@ -750,10 +750,11 @@ Modify `aw-fair-aspect-ratio' to tweak behavior." (aw-split-window-vert window)))) (defun aw-switch-buffer-other-window (window) - "Switch buffer in WINDOW without selecting WINDOW." + "Switch buffer in WINDOW." (aw-switch-to-window window) - (aw--switch-buffer) - (aw-flip-window)) + (unwind-protect + (aw--switch-buffer) + (aw-flip-window))) (defun aw--face-rel-height () (let ((h (face-attribute 'aw-leading-char-face :height)))