Skip to content

Commit

Permalink
Specify hledger-amount-value-regex
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmack committed Jan 22, 2019
1 parent adff310 commit 3c1fcaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hledger-navigate.el
Expand Up @@ -286,7 +286,7 @@ Optional argument SEP-REGEXP is the regular expression that separates things."
(defun hledger-op-on-amount (op)
"Apply operation OP on the previous amount in sight."
(save-excursion
(if (search-forward-regexp hledger-amount-regex nil t)
(if (search-forward-regexp hledger-amount-value-regex nil t)
(let* ((amount-bounds (bounds-of-thing-at-point 'hledger-amount))
(amount (string-to-number (thing-at-point 'hledger-amount)))
(beg (car amount-bounds))
Expand Down

0 comments on commit 3c1fcaf

Please sign in to comment.