summaryrefslogtreecommitdiff
path: root/lisp/ldg-reconcile.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ldg-reconcile.el')
-rw-r--r--lisp/ldg-reconcile.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ldg-reconcile.el b/lisp/ldg-reconcile.el
index 9ac89915..623d7230 100644
--- a/lisp/ldg-reconcile.el
+++ b/lisp/ldg-reconcile.el
@@ -320,10 +320,10 @@ POSTING is used in `ledger-clear-whole-transactions' is nil."
(fit-window-to-buffer recon-window)
(with-current-buffer buf
(add-hook 'kill-buffer-hook 'ledger-reconcile-quit nil t)
- (select-window (get-buffer-window buf))
+ (if (get-window-for-other-buffer buf)
+ (select-window (get-buffer-window buf)))
(goto-char (point-max))
(recenter -1))
-
(select-window recon-window)
(ledger-reconcile-visit t))
(add-hook 'post-command-hook 'ledger-reconcile-track-xact nil t))))