branch: elpa/forth-mode
commit 45650c28a2cdc149a4480d5ea754758c75f8eb01
Author: Mario Rodas <[email protected]>
Commit: Lars Brinkhoff <[email protected]>
Check if forth interactive buffer is live
When the buffer is killed the variable `forth-interaction-buffer`
references to
a killed buffer.
---
forth-interaction-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/forth-interaction-mode.el b/forth-interaction-mode.el
index 9c5373d258..b24e778ad8 100644
--- a/forth-interaction-mode.el
+++ b/forth-interaction-mode.el
@@ -99,7 +99,7 @@
(run-forth))
(defun forth-ensure ()
- (unless forth-interaction-buffer
+ (unless (buffer-live-p forth-interaction-buffer)
(run-forth))
(get-buffer-process forth-interaction-buffer))