Fixed bug where reconcile bombed if you tried to start from a comment
This commit is contained in:
parent
ca99c0de03
commit
be4a212ff2
1 changed files with 2 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue