Skip to content

Commit

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

0 comments on commit 4d2add1

Please sign in to comment.