Skip to content

Commit

Permalink
fix: Allow only file in project tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 13, 2024
1 parent 1bf474b commit a1dffa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion centaur-tabs-functions.el
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,8 @@ buffer changed."

(defun centaur-tabs-project-name ()
"Get project name for tabs."
(when-let* ((project-current (project-current))
(when-let* (((buffer-file-name))
(project-current (project-current))
(project-name (if (proper-list-p project-current)
(car (last project-current))
(cdr project-current))))
Expand Down

0 comments on commit a1dffa3

Please sign in to comment.