Commit faa5ce754208

Vincent Demeester <vincent@sbr.pm>
2020-09-25 13:12:59
tools/emacs: take into account empty projectile name
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent ee5fc8a
Changed files (1)
tools
tools/emacs/config/config-appearance.el
@@ -105,7 +105,9 @@ Ignores `ARGS'."
   (defun vde/tab-bar-tab-name ()
     "Generate tab name from the buffer of the selected window *or* projectile."
     (cond
-     ((boundp 'projectile-project-name) (projectile-project-name))
+     ((boundp 'projectile-project-name) (if (string-equal (projectile-project-name) "-")
+                                            (tab-bar-tab-name-current-with-count)
+                                          (projectile-project-name)))
      (t (tab-bar-tab-name-current-with-count))))
 
   (defun vde/icomplete-tab-bar-tab-dwim ()