diff options
-rw-r--r-- | lisp/ledger-report.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ledger-report.el b/lisp/ledger-report.el index 85f75212..ae45d36d 100644 --- a/lisp/ledger-report.el +++ b/lisp/ledger-report.el @@ -367,8 +367,9 @@ Optional EDIT the command." (interactive) (let ((cur-buf (current-buffer))) (if (and ledger-report-auto-refresh - (string= (format-mode-line 'mode-name) "Ledger") - (get-buffer ledger-report-buffer-name)) + (or (string= (format-mode-line 'mode-name) "Ledger") + (string= (format-mode-line 'mode-name) "Ledger-Report")) + (get-buffer ledger-report-buffer-name)) (progn (pop-to-buffer (get-buffer ledger-report-buffer-name)) |