Skip to content

Commit

Permalink
Merge pull request #426 from andschwa/fix-find-eobp
Browse files Browse the repository at this point in the history
Fix xact-find-slot at end of buffer
  • Loading branch information
enderw88 committed Aug 23, 2015
2 parents 9627e2a + 6fe913a commit 38315cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lisp/ledger-xact.el
Expand Up @@ -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."
Expand Down

0 comments on commit 38315cf

Please sign in to comment.