summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-10-10 20:59:28 +0000
committerBram Moolenaar <Bram@vim.org>2005-10-10 20:59:28 +0000
commitd5cdbeb8dd859510c4674b17b67d613eff40a984 (patch)
tree7efb2d890b1eb727c0e15a2ade2613b606ad6c9b /src/option.c
parent196dfbcca1af4cf07f600e0186757d9adf097e7f (diff)
downloadvim-d5cdbeb8dd859510c4674b17b67d613eff40a984.zip
updated for version 7.0155
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c7
1 files changed, 6 insertions, 1 deletions
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