summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elisp/geiser-repl.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index 4ea1bb7..b75fe78 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -124,7 +124,9 @@ implementation name gets appended to it."
(unless (and (eq major-mode 'geiser-repl-mode)
(not (get-buffer-process (current-buffer))))
(let* ((old (geiser-repl--repl/impl impl geiser-repl--closed-repls))
- (old (and (buffer-live-p old) old)))
+ (old (and (buffer-live-p old)
+ (not (get-buffer-process old))
+ old)))
(pop-to-buffer
(or old
(generate-new-buffer (format "* %s *"