From a37333ad7a7157e3733ae26fe7eb94b646068997 Mon Sep 17 00:00:00 2001 From: Jake Romer Date: Thu, 23 Apr 2020 12:26:11 -0400 Subject: [PATCH] Replace `and` with `when` --- doom-modeline-segments.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 7154390..864bab8 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -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"