Replace and with when

This commit is contained in:
Jake Romer 2020-04-23 12:26:11 -04:00
parent 87de449996
commit a37333ad7a
No known key found for this signature in database
GPG key ID: 8E627277FC2F725F

View file

@ -1433,8 +1433,8 @@ Requires `eyebrowse-mode' or `tab-bar-mode' to be enabled."
(when (or doom-modeline-display-default-persp-name
(not (string-equal persp-nil-name name)))
(concat (doom-modeline-spc)
(propertize (concat (and doom-modeline-persp-icon
(concat icon (doom-modeline-vspc)))
(propertize (concat (when doom-modeline-persp-icon
(concat icon (doom-modeline-vspc)))
(propertize name 'face face))
'help-echo "mouse-1: Switch perspective
mouse-2: Show help for minor mode"