mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add buffer-file-name check to vcs segment #130
This commit is contained in:
@ -324,7 +324,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
||||
;;
|
||||
(def-modeline-segment! vcs
|
||||
"Displays the current branch, colored based on its state."
|
||||
(when vc-mode
|
||||
(when (and vc-mode buffer-file-name)
|
||||
(let ((backend (vc-backend buffer-file-name))
|
||||
(state (vc-state buffer-file-name))
|
||||
(face 'mode-line-inactive)
|
||||
|
Reference in New Issue
Block a user