From 5fdab58c28a1802c737bcc6d6cf60689a3f80bc6 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Mon, 30 Sep 2019 05:58:07 -0400 Subject: [PATCH] Fix read-only indicator showing up for non-files --- mood-line.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mood-line.el b/mood-line.el index 045d3f1..3fa7fa6 100644 --- a/mood-line.el +++ b/mood-line.el @@ -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) " ")) " "))