fix: doom-module-context: nil doom-module-context
If a module isn't enabled, this should silently set the context to an empty array, not nil, which causes a (aref nil 2) type error.
This commit is contained in:
parent
b8038e93cf
commit
07171185bb
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ If NAME is omitted, GROUP is treated as a module key cons cell: (GROUP . NAME)."
|
|||
(let* ((key (if name (cons group name) group))
|
||||
(group (or (car-safe key) key))
|
||||
(name (cdr-safe key))
|
||||
(data (get group name)))
|
||||
(data (or (get group name) doom--empty-module)))
|
||||
(vector group name
|
||||
(aref data (doom-module--context-field flags))
|
||||
(aref data (doom-module--context-field features)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue