diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ledger-state.el | 3 |
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))) |