Skip to content

Commit 6c46352

Browse files
committed
Refresh ledger-occur overlays after ledger-reconcile-add
Fix #383
1 parent 1ba1103 commit 6c46352

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ledger-reconcile.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ Return a count of the uncleared transactions."
508508
This is achieved by placing that transaction at the bottom of the main window.
509509
The key to this is to ensure the window is selected when the buffer point is
510510
moved and recentered. If they aren't strange things happen."
511-
512511
(let ((reconcile-window (get-buffer-window (get-buffer ledger-reconcile-buffer-name))))
513512
(when reconcile-window
514513
(fit-window-to-buffer reconcile-window)
@@ -519,6 +518,9 @@ moved and recentered. If they aren't strange things happen."
519518
(recenter))
520519
(select-window reconcile-window)
521520
(ledger-reconcile-visit t))
521+
(with-current-buffer ledger-buf
522+
(when ledger-occur-mode
523+
(ledger-occur-refresh)))
522524
(add-hook 'post-command-hook 'ledger-reconcile-track-xact nil t)))
523525

524526
(defun ledger-reconcile-track-xact ()

0 commit comments

Comments
 (0)