summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 151f2cd..e64b8d9 100644
--- a/main.c
+++ b/main.c
@@ -529,7 +529,7 @@ void draw_buf(EditBuf *eb) {
VuiAttr txt = A_DEFAULT;
VuiAttr trailsp = BG_BLUE | FG_DEFAULT;
VuiAttr sel = norm | A_REVERSE;
- if (eb->type != ED_BUF_FILE) txt |= A_ITALIC;
+ if (eb->txt->readonly) txt = FG_CYAN | BG_DEFAULT;
vui_clear();
{