diff options
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/option.c b/src/option.c index 8149521fc1..d1fdcc121e 100644 --- a/src/option.c +++ b/src/option.c @@ -6058,9 +6058,7 @@ did_set_string_option( || sandbox != 0 #endif ) && (options[opt_idx].flags & P_SECURE)) - { errmsg = e_secure; - } // Check for a "normal" directory or file name in some options. Disallow a // path separator (slash and/or backslash), wildcards and characters that @@ -6070,9 +6068,7 @@ did_set_string_option( ? "/\\*?[|;&<>\r\n" : "/\\*?[<>\r\n")) != NULL) || ((options[opt_idx].flags & P_NDNAME) && vim_strpbrk(*varp, (char_u *)"*?[|;&<>\r\n") != NULL)) - { errmsg = e_invarg; - } /* 'term' */ else if (varp == &T_NAME) @@ -6722,9 +6718,7 @@ did_set_string_option( break; } if (*s == 'n') /* name is always last one */ - { break; - } else if (*s == 'r') /* skip until next ',' */ { while (*++s && *s != ',') @@ -8318,9 +8312,7 @@ set_bool_option( /* 'compatible' */ if ((int *)varp == &p_cp) - { compatible_set(); - } #ifdef FEAT_LANGMAP if ((int *)varp == &p_lrm) @@ -8547,9 +8539,11 @@ set_bool_option( /* when 'textauto' is set or reset also change 'fileformats' */ else if ((int *)varp == &p_ta) + { set_string_option_direct((char_u *)"ffs", -1, p_ta ? (char_u *)DFLT_FFS_VIM : (char_u *)"", OPT_FREE | opt_flags, 0); + } /* * When 'lisp' option changes include/exclude '-' in |