summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ledger.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ledger.el b/lisp/ledger.el
index 43aabffe..7021c7df 100644
--- a/lisp/ledger.el
+++ b/lisp/ledger.el
@@ -1179,7 +1179,10 @@ the default."
(ledger-add-entry text t)
((error)
(insert text))))
+ (forward-line)
(goto-char (line-end-position))
+ (search-backward ";" (line-beginning-position) t)
+ (skip-chars-backward " \t0123456789.,")
(throw 'pcompleted t))
(ledger-accounts)))))