summaryrefslogtreecommitdiff
path: root/lisp/ledger-report.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ledger-report.el')
-rw-r--r--lisp/ledger-report.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ledger-report.el b/lisp/ledger-report.el
index 9916c085..3c51fc10 100644
--- a/lisp/ledger-report.el
+++ b/lisp/ledger-report.el
@@ -361,7 +361,8 @@ Optional EDIT the command."
"Redo the report in the current ledger report buffer."
(interactive)
- (if (get-buffer ledger-report-buffer-name)
+ (if (and (get-buffer ledger-buf)
+ (get-buffer ledger-report-buffer-name))
(progn
(pop-to-buffer (get-buffer ledger-report-buffer-name))
(shrink-window-if-larger-than-buffer)