From 6ba53d3028d3e93a1f526463c0aab1723ffed064 Mon Sep 17 00:00:00 2001 From: Vincent Labrecque Date: Tue, 25 Jun 2002 14:24:54 +0000 Subject: display readonly/modified combination just like emacs. ok deraadt@ --- usr.bin/mg/display.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/mg/display.c b/usr.bin/mg/display.c index 26cd9bb97fb..9e840355ca2 100644 --- a/usr.bin/mg/display.c +++ b/usr.bin/mg/display.c @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.13 2002/03/27 17:42:37 millert Exp $ */ +/* $OpenBSD: display.c,v 1.14 2002/06/25 14:24:53 vincent Exp $ */ /* * The functions in this file handle redisplay. The @@ -770,7 +770,10 @@ modeline(MGWIN *wp) vtputc('-'); if ((bp->b_flag & BFREADONLY) != 0) { vtputc('%'); - vtputc('%'); + if ((bp->b_flag & BFCHG) != 0) + vtputc('*'); + else + vtputc('%'); } else if ((bp->b_flag & BFCHG) != 0) { /* "*" if changed. */ vtputc('*'); vtputc('*'); -- cgit v1.2.3