branch: master
commit 0a612b1ecbe058d88d4a5dab5da547269de7b3af
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ace-window.el (ace-window): make buffers at least size 1
---
ace-window.el | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ace-window.el b/ace-window.el
index 69a11b0..f8157e7 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -38,7 +38,7 @@
;; To setup this package, just add to your ~.emacs:
;;
;; (global-set-key (kbd "M-p") 'ace-window)
-;;
+;;
;; replacing "M-p" with an appropriate shortcut.
;;
;; Depending on your window usage patterns, you might want to set
@@ -74,6 +74,10 @@
(t
(let ((candidate-list
(mapcar (lambda (va)
+ (let ((b (aj-visual-area-buffer va)))
+ (when (= 0 (buffer-size b))
+ (with-current-buffer b
+ (insert " "))))
(make-aj-position
:offset (window-start (aj-visual-area-window va))
:visual-area va))