summaryrefslogtreecommitdiff
path: root/lisp/ledger-state.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ledger-state.el')
-rw-r--r--lisp/ledger-state.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ledger-state.el b/lisp/ledger-state.el
index 2080363e..53e08e22 100644
--- a/lisp/ledger-state.el
+++ b/lisp/ledger-state.el
@@ -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)))