From 6f59318c914762fffd7dbd659be5329a5d2fb9c0 Mon Sep 17 00:00:00 2001 From: Mark Lumsden Date: Fri, 20 Dec 2013 15:49:01 +0000 Subject: Remove a spurious message that appears in dired mode if you press a key without a function bound to it. ok florian@ --- usr.bin/mg/dired.c | 4 ++-- 1 file 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); -- cgit v1.2.3