modeline: add buffer-file-name check to *vc segment
This commit is contained in:
parent
4f482c099f
commit
1309f6baff
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
||||||
|
|
||||||
(defun *vc ()
|
(defun *vc ()
|
||||||
"Displays the current branch, colored based on its state."
|
"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))
|
(let ((backend (vc-backend buffer-file-name))
|
||||||
(state (vc-state buffer-file-name))
|
(state (vc-state buffer-file-name))
|
||||||
(face 'mode-line-inactive)
|
(face 'mode-line-inactive)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue