summaryrefslogtreecommitdiff
path: root/lisp/ledger-sort.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ledger-sort.el')
-rw-r--r--lisp/ledger-sort.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/ledger-sort.el b/lisp/ledger-sort.el
index 534d3b24..23cfbae9 100644
--- a/lisp/ledger-sort.el
+++ b/lisp/ledger-sort.el
@@ -79,6 +79,8 @@
(goto-char beg)
;; make sure point is at the beginning of a xact
(ledger-navigate-next-xact)
+ (unless (looking-at ledger-payee-any-status-regex)
+ (ledger-navigate-next-xact))
(setq new-beg (point))
(goto-char end)
(ledger-navigate-next-xact)