Skip to content

Commit

Permalink
Merge pull request #33 from daanturo/killed-inspector--temp-buffer
Browse files Browse the repository at this point in the history
Fix corner case inspector--temp-buffer is killed
  • Loading branch information
mmontone authored Jul 31, 2024
2 parents 4e85b25 + e5cc60a commit 85a87a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inspector.el
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,10 @@ See: `inspector--with-inspector-temp-buffer'.")

(defun inspector--get-inspector-temp-buffer ()
"Return a (cached) inspector temporary buffer."
(or inspector--temp-buffer
(setq inspector--temp-buffer
(get-buffer-create "*inspector-temp*"))))
(unless (buffer-live-p inspector--temp-buffer)
(setq inspector--temp-buffer
(get-buffer-create "*inspector-temp*")))
inspector--temp-buffer)

(defun inspector--print-truncated (object &optional limit)
"Print OBJECT to a string, truncated.
Expand Down

0 comments on commit 85a87a6

Please sign in to comment.