Skip to content

Commit

Permalink
fix: (wrong-type-argument stringp nil) in vcs segment
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Mar 29, 2024
1 parent 2ef23a0 commit 29a4bfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 29a4bfc

Please sign in to comment.