fix(lib): doom-files-in's :map causing type errors

This regression was introduced in 10d00b7cc4, causing
"wrong-type-argument: stringp (X . Y)" errors. It is triggered when
doom-files-in is used with a non-nil :map on a nested directory
tree (like our module tree).

Fix: #6370
Amend: 10d00b7cc4
This commit is contained in:
Henrik Lissner 2022-05-05 20:27:22 +02:00
parent 98274f2558
commit 80cd7557e1
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -118,7 +118,8 @@ MATCH is a string regexp. Only entries that match it will be included."
(apply #'doom-files-in file (apply #'doom-files-in file
(append (list :mindepth (1- mindepth) (append (list :mindepth (1- mindepth)
:depth (1- depth) :depth (1- depth)
:relative-to relative-to) :relative-to relative-to
:map nil)
rest))))) rest)))))
((and (memq type '(t files)) ((and (memq type '(t files))
(string-match-p match file) (string-match-p match file)