diff options
author | Marco Wahl <marcowahlsoft@gmail.com> | 2015-01-18 13:33:26 +0100 |
---|---|---|
committer | Marco Wahl <marcowahlsoft@gmail.com> | 2015-01-18 13:33:26 +0100 |
commit | 561ec047be7c490da194c9fadf280bd1862e02b9 (patch) | |
tree | 138cbfe485f9ae0947e22c7b937332ab2cc234d1 /lisp/ledger-xact.el | |
parent | 31b9964e430e8ed0ed6d294255bebf50909e71ea (diff) | |
download | fork-ledger-561ec047be7c490da194c9fadf280bd1862e02b9.tar.gz fork-ledger-561ec047be7c490da194c9fadf280bd1862e02b9.tar.bz2 fork-ledger-561ec047be7c490da194c9fadf280bd1862e02b9.zip |
[emacs] fix copy
ledger-xact.el:ledger-copy-transaction-at-point (C-c C-k) led to a confusing change in the ledger file for the case when the target date was smaller than last date in the ledger.
Diffstat (limited to 'lisp/ledger-xact.el')
-rw-r--r-- | lisp/ledger-xact.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ledger-xact.el b/lisp/ledger-xact.el index 0eb9386a..bad36e7a 100644 --- a/lisp/ledger-xact.el +++ b/lisp/ledger-xact.el @@ -139,6 +139,7 @@ MOMENT is an encoded date" (string-to-number (match-string 2 date))))) (ledger-xact-find-slot encoded-date) (insert transaction "\n") + (beginning-of-line -1) (ledger-navigate-beginning-of-xact) (re-search-forward ledger-iso-date-regexp) (replace-match date) |