Fix doom/info omitting first module in each category

Discovered in #941
This commit is contained in:
Henrik Lissner 2018-10-12 14:07:25 -04:00
parent 765ca10a92
commit 0ebf526e01
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -50,7 +50,9 @@ ready to be pasted in a bug report on github."
(or (cl-loop with cat = nil (or (cl-loop with cat = nil
for key being the hash-keys of doom-modules for key being the hash-keys of doom-modules
if (or (not cat) (not (eq cat (car key)))) if (or (not cat) (not (eq cat (car key))))
do (setq cat (car key)) and collect cat do (setq cat (car key))
and collect cat
and collect (cdr key)
else collect else collect
(let ((flags (doom-module-get cat (cdr key) :flags))) (let ((flags (doom-module-get cat (cdr key) :flags)))
(if flags (if flags