comparison src/option.c @ 548:f43150a669dc

updated for version 7.0155
author vimboss
date Mon, 10 Oct 2005 20:59:28 +0000
parents 2df7f3a5eb96
children 25a70b1cd2da
comparison
equal deleted inserted replaced
547:513d037fad50 548:f43150a669dc
6595 if ((int *)varp == &p_cp) 6595 if ((int *)varp == &p_cp)
6596 { 6596 {
6597 compatible_set(); 6597 compatible_set();
6598 } 6598 }
6599 6599
6600 /* when 'readonly' is reset globally, also reset readonlymode */
6601 else if ((int *)varp == &curbuf->b_p_ro) 6600 else if ((int *)varp == &curbuf->b_p_ro)
6602 { 6601 {
6602 /* when 'readonly' is reset globally, also reset readonlymode */
6603 if (!curbuf->b_p_ro && (opt_flags & OPT_LOCAL) == 0) 6603 if (!curbuf->b_p_ro && (opt_flags & OPT_LOCAL) == 0)
6604 readonlymode = FALSE; 6604 readonlymode = FALSE;
6605
6606 /* when 'readonly' is set may give W10 again */
6607 if (curbuf->b_p_ro)
6608 curbuf->b_did_warn = FALSE;
6609
6605 #ifdef FEAT_TITLE 6610 #ifdef FEAT_TITLE
6606 need_maketitle = TRUE; 6611 need_maketitle = TRUE;
6607 #endif 6612 #endif
6608 } 6613 }
6609 6614