branch: master
commit dd44ece5da4d8fc6e3cd5cd90859b063f4b083b8
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ace-window.el (aw-delete-window): allow to delete current window
Fixes #7.
---
ace-window.el | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/ace-window.el b/ace-window.el
index 518e117..3d41fde 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -252,8 +252,7 @@ Windows are numbered top down, left to right."
(if (and (frame-live-p frame)
(not (eq frame (selected-frame))))
(select-frame-set-input-focus (window-frame window)))
- (if (and (window-live-p window)
- (not (eq window (selected-window))))
+ (if (window-live-p window)
(delete-window window)))))
(defun aw-swap-window (position)