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:
parent
3b20d9a11f
commit
8afc183730
1 changed files with 2 additions and 1 deletions
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue