Skip to content

Commit

Permalink
fix: not display nil in project name
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Dec 2, 2024
1 parent d4985f0 commit 3fd392d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -1547,10 +1547,10 @@ one. The ignored buffers are excluded unless `aw-ignore-on' is nil."
((and (memq doom-modeline-project-detection '(auto project))
(fboundp 'project-current))
(when-let* ((project (project-current)))
(project-name project)))
(t ""))))
(unless (string-empty-p name)
(format " [%s] " name))))))
(project-name project))))))
(if (and name (not (string-empty-p name)))
(format " [%s] " name)
"")))))

(doom-modeline-add-variable-watcher
'doom-modeline-project-detection
Expand Down

0 comments on commit 3fd392d

Please sign in to comment.