Fix bug 1059, ledger mode deletes character if a posting is cleared but there are less that four space between the account and the amount.

This commit is contained in:
Craig Earls 2014-06-24 20:48:20 -07:00
parent 3b20d9a11f
commit 8afc183730

View file

@ -104,7 +104,8 @@ dropped."
(when (not (eq (ledger-state-from-char (char-after)) 'comment))
(insert (ledger-char-from-state cur-status) " ")
(if (search-forward " " (line-end-position) t)
(delete-char 2)))
(if (looking-at " ")
(delete-char 2))))
(forward-line))
(setq new-status nil)))