[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/buffer-expose 33d9a34 2/3: Don't wrap around to start w
From: |
Clemens Radermacher |
Subject: |
[elpa] externals/buffer-expose 33d9a34 2/3: Don't wrap around to start when killing buffer in last window |
Date: |
Thu, 28 Feb 2019 03:47:35 -0500 (EST) |
branch: externals/buffer-expose
commit 33d9a34e5dc0578146e23dfb3fc53d7d69460e08
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>
Don't wrap around to start when killing buffer in last window
---
buffer-expose.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/buffer-expose.el b/buffer-expose.el
index edab044..770d2cd 100644
--- a/buffer-expose.el
+++ b/buffer-expose.el
@@ -1033,8 +1033,11 @@ F defaults to the currently selected window."
(setq buffer-expose--selected-cookie nil)
(setf (window-buffer w)
(buffer-expose--create-empty-buffer))
- (buffer-expose--other-window)
- (buffer-expose--update-display)))))
+ (buffer-expose--select-window
+ (or (window-in-direction 'right)
+ (window-in-direction 'below)
+ (window-in-direction 'left)
+ (selected-window)))))))
(defun buffer-expose-choose ()
"Choose buffer and exit overview."