summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ledger-occur.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ledger-occur.el b/lisp/ledger-occur.el
index 0c1a07d7..4c2b0643 100644
--- a/lisp/ledger-occur.el
+++ b/lisp/ledger-occur.el
@@ -55,7 +55,7 @@
nil
(:eval (format " Ledger-Narrow(%s)" ledger-occur-current-regex))
ledger-occur-mode-map
- (if ledger-occur-mode
+ (if (and ledger-occur-current-regex ledger-occur-mode)
(ledger-occur-refresh)
(ledger-occur-remove-overlays)
(message "Showing all transactions")))