diff options
author | 2002-06-25 14:24:53 +0000 | |
---|---|---|
committer | 2002-06-25 14:24:53 +0000 | |
commit | aabd75eeb08a9151a94afbdd9c9c4e6b9f61e965 (patch) | |
tree | 6062d268b1429cf15c0f4c3c2155249bd372161b | |
parent | regression tests for options in pf.conf (diff) | |
download | wireguard-openbsd-aabd75eeb08a9151a94afbdd9c9c4e6b9f61e965.tar.xz wireguard-openbsd-aabd75eeb08a9151a94afbdd9c9c4e6b9f61e965.zip |
display readonly/modified combination just like emacs.
ok deraadt@
-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('*'); |