From add716f7761c4e60134b847b9257e0b2b563de91 Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Sun, 29 Jun 2014 19:44:02 -0700 Subject: [PATCH] ledger reconcile will recommend the account in the posting, even if point isn't in it. --- lisp/ledger-mode.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/ledger-mode.el b/lisp/ledger-mode.el index f89df45c..0d348af3 100644 --- a/lisp/ledger-mode.el +++ b/lisp/ledger-mode.el @@ -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)))