From a86294e1de89612b24e8ff7e9f80524138f53f8f Mon Sep 17 00:00:00 2001 From: sczi Date: Mon, 25 Aug 2025 15:25:20 -0400 Subject: [PATCH] switch to last selected window --- ace-window.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ace-window.el b/ace-window.el index ccb2783..d950cc2 100644 --- a/ace-window.el +++ b/ace-window.el @@ -739,7 +739,9 @@ Windows are numbered top down, left to right." (defun aw-flip-window () "Switch to the window you were previously in." (interactive) - (aw-switch-to-window (aw--pop-window))) + (let ((win (get-mru-window t t t))) + (unless win (error "Last window not found")) + (aw-switch-to-window win))) (defun aw-show-dispatch-help () "Display action shortucts in echo area."