branch: externals/dape
commit 8bf6d5b7d96b2b5a0b51c3db6be394d7d041e197
Author: Daniel Pettersson <[email protected]>
Commit: Daniel Pettersson <[email protected]>
Fix buffer killing when buffer name is nil
---
dape.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dape.el b/dape.el
index ed9d62b859..12299f283a 100644
--- a/dape.el
+++ b/dape.el
@@ -1189,10 +1189,10 @@ as is."
"Kill all dape buffers.
On SKIP-PROCESS-BUFFERS skip deletion of buffers which has processes."
(cl-loop for buffer in (buffer-list)
- when (and (bufferp buffer)
- (not (and skip-process-buffers
+ when (and (not (and skip-process-buffers
(get-buffer-process buffer)))
- (string-match-p "\\*dape-.+\\*" (buffer-name buffer)))
+ (when-let* ((name (buffer-name buffer)))
+ (string-match-p "\\*dape-.+\\*" name)))
do (condition-case err
(let ((window (get-buffer-window buffer)))
(kill-buffer buffer)