diff options
author | Craig Earls <enderw88@gmail.com> | 2013-02-13 13:23:04 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2013-02-13 13:23:04 -0700 |
commit | 15d838d1f86b41e303e392d78eaac970311594cb (patch) | |
tree | 2d6eeb454f11619d027871b858e9b2c59e70cfcc /lisp/ldg-xact.el | |
parent | 6315c60e43e62397a8c5396ea1f591b61ea6fcdb (diff) | |
download | fork-ledger-15d838d1f86b41e303e392d78eaac970311594cb.tar.gz fork-ledger-15d838d1f86b41e303e392d78eaac970311594cb.tar.bz2 fork-ledger-15d838d1f86b41e303e392d78eaac970311594cb.zip |
Bug 893 Ledger reconcile loses alignment
An earlier change to multi-file support stored the actual markers to the beginnings of the transaction/postings.
When reconcile would insert characters it would invalidate those marker and after many items and been
cleared could result in severe misalignment. This change brings back storing the line-numbers as reported by emacs.
Diffstat (limited to 'lisp/ldg-xact.el')
-rw-r--r-- | lisp/ldg-xact.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/ldg-xact.el b/lisp/ldg-xact.el index ab2c34f4..4b73b2ea 100644 --- a/lisp/ldg-xact.el +++ b/lisp/ldg-xact.el @@ -74,5 +74,7 @@ (ledger-context-field-value context-info 'payee) nil)))) +(defsubst ledger-goto-line (line-number) + (goto-char (point-min)) (forward-line (1- line-number))) (provide 'ldg-xact)
\ No newline at end of file |