summaryrefslogtreecommitdiff
path: root/lisp/ledger-state.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2014-11-27 09:42:23 -0700
committerCraig Earls <enderw88@gmail.com>2014-11-27 09:42:23 -0700
commit54a736feabfa3993ffc38433e3c12b611391f952 (patch)
tree045f4fe86f025e1ef262a9fddbb129c780a26ea3 /lisp/ledger-state.el
parentdb7e4fd741021bec72121f915414679d30144735 (diff)
downloadfork-ledger-54a736feabfa3993ffc38433e3c12b611391f952.tar.gz
fork-ledger-54a736feabfa3993ffc38433e3c12b611391f952.tar.bz2
fork-ledger-54a736feabfa3993ffc38433e3c12b611391f952.zip
Remove s-trim functions since they stomp on s.el.
Diffstat (limited to 'lisp/ledger-state.el')
-rw-r--r--lisp/ledger-state.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ledger-state.el b/lisp/ledger-state.el
index 8822570d..b2574b10 100644
--- a/lisp/ledger-state.el
+++ b/lisp/ledger-state.el
@@ -68,9 +68,9 @@
(defun ledger-state-from-string (state-string)
"Get state from STATE-CHAR."
- (cond ((string= state-string "!") 'pending)
- ((string= state-string "*") 'cleared)
- ((string= state-string ";") 'comment)
+ (cond ((string-match "\\!" state-string) 'pending)
+ ((string-match "\\*" state-string) 'cleared)
+ ((string-match ";" state-string) 'comment)
(t nil)))
(defun ledger-toggle-current-posting (&optional style)