From 561ec047be7c490da194c9fadf280bd1862e02b9 Mon Sep 17 00:00:00 2001 From: Marco Wahl Date: Sun, 18 Jan 2015 13:33:26 +0100 Subject: [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. --- lisp/ledger-xact.el | 1 + 1 file changed, 1 insertion(+) (limited to 'lisp/ledger-xact.el') 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) -- cgit v1.2.3