summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/ldg-commodities.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ldg-commodities.el b/lisp/ldg-commodities.el
index c832f375..14cc168f 100644
--- a/lisp/ldg-commodities.el
+++ b/lisp/ldg-commodities.el
@@ -49,6 +49,7 @@ This only has effect interfacing to calc mode in edit amount"
(string-to-number
(ledger-commodity-string-number-decimalize
(delete-and-extract-region (match-beginning 0) (match-end 0)) :from-user)))
+ (goto-char (point-min))
(re-search-forward "[^[:space:]]" nil t)
(setq comm
(delete-and-extract-region (match-beginning 0) (match-end 0)))