Fixed bug where reconcile bombed if you tried to start from a comment

This commit is contained in:
Craig Earls 2013-03-09 15:04:07 -07:00
parent ca99c0de03
commit be4a212ff2

View file

@ -234,7 +234,8 @@ BEG, END, and LEN control how far it can align."
(defun ledger-post-read-account-with-prompt (prompt)
(let* ((context (ledger-context-at-point))
(default
(if (eq (ledger-context-line-type context) 'acct-transaction)
(if (and (eq (ledger-context-line-type context) 'acct-transaction)
(eq (ledger-context-current-field context) 'account))
(regexp-quote (ledger-context-field-value context 'account))
nil)))
(ledger-read-string-with-default prompt default)))