diff options
author | 2013-12-20 15:49:00 +0000 | |
---|---|---|
committer | 2013-12-20 15:49:00 +0000 | |
commit | 15c052dd36517455b4324e2456c0c2497522c23d (patch) | |
tree | 6dc5d199537a4b63dfa451d098755214d972cf13 | |
parent | When writing a file, break out when we get a write(2) error, not (diff) | |
download | wireguard-openbsd-15c052dd36517455b4324e2456c0c2497522c23d.tar.xz wireguard-openbsd-15c052dd36517455b4324e2456c0c2497522c23d.zip |
Remove a spurious message that appears in dired mode if you press a
key without a function bound to it.
ok florian@
-rw-r--r-- | usr.bin/mg/dired.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c index a087c5b602d..6ba26322e1f 100644 --- a/usr.bin/mg/dired.c +++ b/usr.bin/mg/dired.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dired.c,v 1.64 2013/12/19 19:04:56 lum Exp $ */ +/* $OpenBSD: dired.c,v 1.65 2013/12/20 15:49:00 lum Exp $ */ /* This file is in the public domain. */ @@ -794,7 +794,7 @@ dired_(char *dname) } if (bclear(bp) != TRUE) return (NULL); - bp->b_flag |= BFREADONLY; + bp->b_flag |= BFREADONLY | BFIGNDIRTY; if ((d_exec(2, bp, NULL, "ls", "-al", dname, NULL)) != TRUE) return (NULL); |