Fix read-only indicator showing up for non-files
This commit is contained in:
parent
2b643fdae3
commit
5fdab58c28
@ -213,7 +213,7 @@
|
|||||||
(if (not (string-match-p "\\*.*\\*" (buffer-name)))
|
(if (not (string-match-p "\\*.*\\*" (buffer-name)))
|
||||||
(if (buffer-modified-p)
|
(if (buffer-modified-p)
|
||||||
(propertize "● " 'face 'mood-line-modified)
|
(propertize "● " 'face 'mood-line-modified)
|
||||||
(if buffer-read-only
|
(if (and buffer-read-only (buffer-file-name))
|
||||||
(propertize "■ " 'face 'mood-line-unimportant)
|
(propertize "■ " 'face 'mood-line-unimportant)
|
||||||
" "))
|
" "))
|
||||||
" "))
|
" "))
|
||||||
|
Loading…
Reference in New Issue
Block a user