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

    Fix error in sentinel when comint-indirect-buffer is killed
    
    The `comint-indirect-buffer` name is derived from the shell
    buffer (*dape-shell* + suffix).  If we want to avoid errors in the
    sentinel callback, we should leave it to allow `comint` to kill this
    buffer
---
 dape.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dape.el b/dape.el
index ec08ce6dae..70c88792cf 100644
--- a/dape.el
+++ b/dape.el
@@ -1201,7 +1201,7 @@ On SKIP-PROCESS-BUFFERS skip deletion of buffers which 
has processes."
            when (and (not (and skip-process-buffers
                                (get-buffer-process buffer)))
                      (when-let* ((name (buffer-name buffer)))
-                       (string-match-p "\\*dape-.+\\*" name)))
+                       (string-match-p "\\*dape-.+\\*\\(<[0-9]+>\\)?$" name)))
            do (condition-case err
                   (let ((window (get-buffer-window buffer)))
                     (kill-buffer buffer)

Reply via email to