branch: externals/dape
commit 3dddd6c89dca8cda202ffd5dc7321aab77a3eb81
Author: Daniel Pettersson <dan...@dpettersson.net>
Commit: Daniel Pettersson <dan...@dpettersson.net>

    Fix cl-some incorrect usage in last commit
---
 dape.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dape.el b/dape.el
index bc5b7de1da..8363e9abe2 100644
--- a/dape.el
+++ b/dape.el
@@ -3652,10 +3652,11 @@ buffers get displayed and how they are grouped."
                       ;; Try to re-create the last window setup
                       (cl-find-if
                        (pcase-lambda (`(,hist-mode ,hist-index))
-                         (cl-some
+                         (cl-find-if
                           (pcase-lambda (`(,spec-mode ,spec-index))
                             (and (eq hist-mode spec-mode)
-                                 (eq hist-index spec-index)))
+                                 (or (not spec-index)
+                                     (eq hist-index spec-index))))
                           group
                           :key #'ensure-list))
                        dape--info-buffer-display-history)

Reply via email to