diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-30 18:47:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-30 18:47:01 +0100 |
commit | abab0b0fdd6535969447b03a4fffc1947918cf6c (patch) | |
tree | 2d43537a5dce8433ef2b2a37684c9e069392c592 /src/option.c | |
parent | bd9bf266fccbf7b7f09e476e09b61f0133e914db (diff) | |
download | vim-git-abab0b0fdd6535969447b03a4fffc1947918cf6c.tar.gz |
patch 8.1.1086: too many curly bracesv8.1.1086
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982)
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 8149521fc..d1fdcc121 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 |