summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-02-21 21:39:30 -0700
committerCraig Earls <enderw88@gmail.com>2013-02-21 21:39:30 -0700
commitc68bdde19fe13d85b606c6f8e5f24608c0d4810c (patch)
tree4125490ba2fc796ba083b060edc8293966254df9 /lisp
parent510a7c4e6c58d296d93941b193729b1d91dbb927 (diff)
downloadfork-ledger-c68bdde19fe13d85b606c6f8e5f24608c0d4810c.tar.gz
fork-ledger-c68bdde19fe13d85b606c6f8e5f24608c0d4810c.tar.bz2
fork-ledger-c68bdde19fe13d85b606c6f8e5f24608c0d4810c.zip
Another buglet in the commodity handler.
Diffstat (limited to 'lisp')
-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)))