diff options
author | Craig Earls <enderw88@gmail.com> | 2013-04-01 16:34:30 -0700 |
---|---|---|
committer | Craig Earls <enderw88@gmail.com> | 2013-04-01 16:34:30 -0700 |
commit | 78bedf7c8ea15e369f56fbd317d03deb35343258 (patch) | |
tree | 4055c24d12e8c4cc96c056a9453fc6a7c91edf12 /lisp | |
parent | 024697c4fcd552b6dd806c5be1a916f95393b5be (diff) | |
download | fork-ledger-78bedf7c8ea15e369f56fbd317d03deb35343258.tar.gz fork-ledger-78bedf7c8ea15e369f56fbd317d03deb35343258.tar.bz2 fork-ledger-78bedf7c8ea15e369f56fbd317d03deb35343258.zip |
Bring back comments into account completion.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ldg-complete.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/ldg-complete.el b/lisp/ldg-complete.el index 65206026..fe27e91d 100644 --- a/lisp/ldg-complete.el +++ b/lisp/ldg-complete.el @@ -77,10 +77,9 @@ Return tree structure" (split-string (match-string-no-properties 2) ":")) (let ((root account-tree)) - (while (and account-elements - (not (char-equal (string-to-char (car account-elements)) ?\;))) - (let ((entry (assoc (car account-elements) root))) - (if entry + (while account-elements + (let ((entry (assoc (car account-elements) root))) + (if entry (setq root (cdr entry)) (setq entry (cons (car account-elements) (list t))) (nconc root (list entry)) |