diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index dafff974..e7b90fe6 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -727,7 +727,8 @@ Uses `nerd-icons-octicon' to fetch the icon." (doom-modeline-def-segment vcs "Displays the current branch, colored based on its state." - (when-let ((str (split-string doom-modeline--vcs " "))) + (when-let ((seg doom-modeline--vcs) + (str (split-string seg " "))) (concat (doom-modeline-spc) (doom-modeline-display-icon (nth 0 str))