Prevent failure if ledger sort buffer is called with point before the ledger start marker.

This commit is contained in:
Craig Earls 2013-05-14 16:23:00 -07:00
parent 47142e5846
commit a22ae04136

View file

@ -100,7 +100,7 @@
'ledger-end-record-function
'ledger-sort-startkey))))
(goto-char beg)
(goto-char (point-min))
(re-search-forward (regexp-quote target-xact))
(goto-char (+ (match-beginning 0) point-delta))
(setq inhibit-modification-hooks nil)))