diff options
author | Craig Earls <enderw88@gmail.com> | 2013-03-25 23:50:26 -0400 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2013-03-25 23:50:26 -0400 |
commit | b947bae1a8bf9a9ca326db46d8f5c907bedc3f1c (patch) | |
tree | 5f49ed854f67039341d8f641b54dff5c550984d3 /lisp/ldg-complete.el | |
parent | bc7a885eb711f4a6cf83d8e7701d90f0079e0359 (diff) | |
download | fork-ledger-b947bae1a8bf9a9ca326db46d8f5c907bedc3f1c.tar.gz fork-ledger-b947bae1a8bf9a9ca326db46d8f5c907bedc3f1c.tar.bz2 fork-ledger-b947bae1a8bf9a9ca326db46d8f5c907bedc3f1c.zip |
Fix align-postings to deal with being at end of buffer
Diffstat (limited to 'lisp/ldg-complete.el')
-rw-r--r-- | lisp/ldg-complete.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/ldg-complete.el b/lisp/ldg-complete.el index 7e37163b..9d524b86 100644 --- a/lisp/ldg-complete.el +++ b/lisp/ldg-complete.el @@ -127,10 +127,9 @@ Return tree structure" (line-end-position)))) (delete-region (line-beginning-position) (line-end-position)) - (condition-case err + (condition-case nil (ledger-add-transaction text t) - ((error "ledger-complete-at-point") - (insert text)))) + (error nil))) (forward-line) (goto-char (line-end-position)) (search-backward ";" (line-beginning-position) t) |