Fix read-only indicator showing up for non-files

This commit is contained in:
Jessie Hildebrandt 2019-09-30 05:58:07 -04:00
parent 2b643fdae3
commit 5fdab58c28

View File

@ -213,7 +213,7 @@
(if (not (string-match-p "\\*.*\\*" (buffer-name)))
(if (buffer-modified-p)
(propertize "" 'face 'mood-line-modified)
(if buffer-read-only
(if (and buffer-read-only (buffer-file-name))
(propertize "" 'face 'mood-line-unimportant)
" "))
" "))