diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/display.c | 7 |
1 files changed, 5 insertions, 2 deletions
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('*'); |