1
0
forked from aniani/vim

updated for version 7.0155

This commit is contained in:
Bram Moolenaar
2005-10-10 20:59:28 +00:00
parent 196dfbcca1
commit d5cdbeb8dd
39 changed files with 25288 additions and 566 deletions

View File

@@ -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