Find first numeral or minus sign, instead of blind move
This commit is contained in:
parent
816f4405b0
commit
7704018968
1 changed files with 2 additions and 1 deletions
|
|
@ -151,7 +151,8 @@ MOMENT is an encoded date"
|
|||
(re-search-forward ledger-iso-date-regexp)
|
||||
(replace-match date)
|
||||
(ledger-next-amount)
|
||||
(forward-char 2)))
|
||||
(if (re-search-forward "[-0-9]")
|
||||
(goto-char (match-beginning 0)))))
|
||||
|
||||
(defun ledger-delete-current-transaction (pos)
|
||||
"Delete the transaction surrounging point."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue