Skip to content

Commit f7b6a8e

Browse files
dpsuttonbbatsov
authored andcommitted
Don't try to select a dead buffer
1 parent 54ac59a commit f7b6a8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inf-clojure.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ mode. Default is whitespace followed by 0 or 1 single-letter colon-keyword
277277
(defun inf-clojure--modeline-info ()
278278
"Return modeline info.
279279
Either \"not connected\" or \"repl-type: buffer-name\""
280-
(if (bufferp inf-clojure-buffer)
280+
(if (and (bufferp inf-clojure-buffer)
281+
(buffer-live-p inf-clojure-buffer))
281282
(with-current-buffer inf-clojure-buffer
282283
(format "%s: %s" inf-clojure-repl-type (buffer-name (current-buffer))))
283284
"not connected"))

0 commit comments

Comments
 (0)