updated for version 7.0155
diff --git a/src/option.c b/src/option.c
index 4d7a95b..1b724dc 100644
--- a/src/option.c
+++ b/src/option.c
@@ -6597,11 +6597,16 @@
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