summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ldg-reconcile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ldg-reconcile.el b/lisp/ldg-reconcile.el
index 99958aaa..c33eef2e 100644
--- a/lisp/ldg-reconcile.el
+++ b/lisp/ldg-reconcile.el
@@ -257,7 +257,7 @@ and exit reconcile mode"
"Cleanup all hooks established by reconcile mode."
(interactive)
(let ((buf ledger-buf))
- (if buf
+ (if (buffer-live-p buf)
(with-current-buffer buf
(remove-hook 'after-save-hook 'ledger-reconcile-refresh-after-save t)
(if ledger-fold-on-reconcile