From a1dffa3da14fca819f2dab891d07431344108f91 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Thu, 13 Jun 2024 15:18:08 -0700 Subject: [PATCH] fix: Allow only file in project tabs --- centaur-tabs-functions.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/centaur-tabs-functions.el b/centaur-tabs-functions.el index ffe921d..e0508c1 100644 --- a/centaur-tabs-functions.el +++ b/centaur-tabs-functions.el @@ -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))))