ledger reconcile will recommend the account in the posting, even if point isn't in it.

This commit is contained in:
Craig Earls 2014-06-29 19:44:02 -07:00
parent 838625f8a3
commit add716f776

View file

@ -93,8 +93,7 @@
(defun ledger-read-account-with-prompt (prompt)
(let* ((context (ledger-context-at-point))
(default (if (and (eq (ledger-context-line-type context) 'acct-transaction)
(eq (ledger-context-current-field context) 'account))
(default (if (eq (ledger-context-line-type context) 'acct-transaction)
(regexp-quote (ledger-context-field-value context 'account))
nil)))
(ledger-read-string-with-default prompt default)))