From d5cdbeb8dd859510c4674b17b67d613eff40a984 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 10 Oct 2005 20:59:28 +0000 Subject: updated for version 7.0155 --- src/option.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/option.c') diff --git a/src/option.c b/src/option.c index 4d7a95b1e..1b724dca4 100644 --- a/src/option.c +++ b/src/option.c @@ -6597,11 +6597,16 @@ set_bool_option(opt_idx, varp, value, opt_flags) compatible_set(); } - /* when 'readonly' is reset globally, also reset readonlymode */ else if ((int *)varp == &curbuf->b_p_ro) { + /* when 'readonly' is reset globally, also reset readonlymode */ if (!curbuf->b_p_ro && (opt_flags & OPT_LOCAL) == 0) readonlymode = FALSE; + + /* when 'readonly' is set may give W10 again */ + if (curbuf->b_p_ro) + curbuf->b_did_warn = FALSE; + #ifdef FEAT_TITLE need_maketitle = TRUE; #endif -- cgit v1.2.3