emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/detached 53be9af04c: Fix bug in detached-list-sessions


From: ELPA Syncer
Subject: [elpa] externals/detached 53be9af04c: Fix bug in detached-list-sessions
Date: Sun, 2 Oct 2022 06:57:30 -0400 (EDT)

branch: externals/detached
commit 53be9af04c8ad3ab4b5f9cb451f6e40621b4c89c
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Fix bug in detached-list-sessions
    
    When calling the command multiple times, while the buffer was present
    in a window it incorrectly created a new window.
---
 detached-list.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/detached-list.el b/detached-list.el
index 050b75e161..d1fe0047f4 100644
--- a/detached-list.el
+++ b/detached-list.el
@@ -444,7 +444,9 @@ If prefix-argument is provided unmark instead of mark."
   "Open list of `detached'."
   (interactive)
   (if-let* ((existing-buffer (detached-list--get-list-mode-buffer))
-            (window (display-buffer existing-buffer 
detached-list-display-buffer-action)))
+            (window (or
+                     (get-buffer-window existing-buffer)
+                     (display-buffer existing-buffer 
detached-list-display-buffer-action))))
       (progn
         (select-window window)
         (detached-list--revert-sessions))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]