summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2015-08-22 18:48:48 -0700
committerCraig Earls <enderw88@gmail.com>2015-08-22 18:48:48 -0700
commit38315cfba2a4677ed3d7df81e3f4a5d28f1f4a1b (patch)
treef071d9b7fcc54a3a6f92be69b147f4a74e9e2663 /lisp
parent9627e2a97b56826e723eee0b8410a3e12bde4bb9 (diff)
parent6fe913aa87ebb84dc39f6277aeeb6abf716c2985 (diff)
downloadfork-ledger-38315cfba2a4677ed3d7df81e3f4a5d28f1f4a1b.tar.gz
fork-ledger-38315cfba2a4677ed3d7df81e3f4a5d28f1f4a1b.tar.bz2
fork-ledger-38315cfba2a4677ed3d7df81e3f4a5d28f1f4a1b.zip
Merge pull request #426 from andschwa/fix-find-eobp
Fix xact-find-slot at end of buffer
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ledger-xact.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/ledger-xact.el b/lisp/ledger-xact.el
index 64f69cbe..513f8f26 100644
--- a/lisp/ledger-xact.el
+++ b/lisp/ledger-xact.el
@@ -89,9 +89,8 @@ MOMENT is an encoded date"
(when (and (eobp) last-xact-start)
(let ((end (cadr (ledger-navigate-find-xact-extents last-xact-start))))
(goto-char end)
- (if (eobp)
- (insert "\n")
- (forward-line))))))
+ (insert "\n")
+ (forward-line)))))
(defun ledger-xact-iterate-transactions (callback)
"Iterate through each transaction call CALLBACK for each."