spacemacs/layers/+distributions
Markus Bertheau 4acdf7733e
Fix one diminish pattern in a list in :spacediminish (#14810)
The code changed here wants to distinguish the cases of whether `arg` is a list
with one set of args to `spacemacs|diminish` or a list of a list of such args.
It used to look at the second element of `args` to make that distinction.
Consequently, if you want to specify a list of a list of args for
`:spacediminish`, you'd have to have at least two such lists of args in the list.

However in
38f582d785
a usage with a list of just one list of args was introduced.

This fixes changes the detection so that it looks at the first element of `arg`.
If that's a list, `arg` is assumed to be a list of lists of args to
`spacemacs|diminish`. If it's not, it's assumed to be just a list of args to
`spacemacs|diminish`. That works well because the first argument to
`spacemacs|diminish` is a symbol.

Fixes #14726
2021-05-31 04:39:16 +00:00
..
spacemacs Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
spacemacs-base Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
spacemacs-bootstrap Fix one diminish pattern in a list in :spacediminish (#14810) 2021-05-31 04:39:16 +00:00