diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-06-25 14:24:54 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2002-06-25 14:24:54 +0000 |
commit | 6ba53d3028d3e93a1f526463c0aab1723ffed064 (patch) | |
tree | a7b2834cd165a464b5eb2343982fb5fb062a7560 /usr.bin/mg/display.c | |
parent | 6170a7b3d66abf8c132e867c0c2aa8d2ded399a9 (diff) |
display readonly/modified combination just like emacs.
ok deraadt@
Diffstat (limited to 'usr.bin/mg/display.c')
-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('*'); |