summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2026-01-02 03:12:21 -0500
committerWormHeamer2026-01-02 03:12:21 -0500
commite46cc3125e9feb52788ae7ab37d1119053978af0 (patch)
tree40f7f3fa02a50f9b83649600f3d32c0d99f7f6ff
parent37f020979b7e71b1be8624b4570241c004fc9a95 (diff)
belay that; show readonly buffers as cyan
-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();
{