branch: master
commit dd84ff605497bdfdf85ad79290e046f2e783e209
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Fix aw-ignore-current for 3 windows
ace-window.el (aw-select): Update.
Fixes #48
---
ace-window.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ace-window.el b/ace-window.el
index 20fe1e4..0a9d9b8 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -278,7 +278,9 @@ Amend MODE-LINE to the mode line for the duration of the
selection."
(when (eq aw-action 'exit)
(setq aw-action nil)))
(or (car wnd-list) start-window))
- ((and (= (length wnd-list) 2) (not aw-dispatch-always))
+ ((and (= (length wnd-list) 2)
+ (not aw-dispatch-always)
+ (not aw-ignore-current))
(let ((wnd (next-window nil nil next-window-scope)))
(while (and (aw-ignored-p wnd)
(not (equal wnd start-window)))