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

    Remove limit for number of window-groups for side window-arrangements
---
 dape.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dape.el b/dape.el
index 21d3604936..183122ca69 100644
--- a/dape.el
+++ b/dape.el
@@ -1202,10 +1202,8 @@ On SKIP-PROCESS-BUFFERS skip deletion of buffers which 
has processes."
                          (pcase (cons mode group)
                            (`(dape-repl-mode . ,_) '((side . bottom) (slot . 
-1)))
                            (`(dape-shell-mode . ,_) '((side . bottom) (slot . 
0)))
-                           (`(,_ . 0) `((side . 
,dape-buffer-window-arrangement) (slot . -1)))
-                           (`(,_ . 1) `((side . 
,dape-buffer-window-arrangement) (slot . 0)))
-                           (`(,_ . 2) `((side . 
,dape-buffer-window-arrangement) (slot . 1)))
-                           (_ (error "Unable to display buffer of mode `%s'" 
mode)))))
+                           (`(,_ . ,index) `((side . 
,dape-buffer-window-arrangement)
+                                             (slot . ,(1- index)))))))
                   ('gud
                    (pcase (cons mode group)
                      (`(dape-repl-mode . ,_)

Reply via email to