Skip to content

Commit 0945eaf

Browse files
committed
patch 8.0.0106
Problem: Cannot use a semicolon in 'backupext'. (Jeff) Solution: Allow for a few more characters when "secure" isn't set.
1 parent 4b785f6 commit 0945eaf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/option.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5879,9 +5879,11 @@ did_set_string_option(
58795879

58805880
/* Check for a "normal" directory or file name in some options. Disallow a
58815881
* path separator (slash and/or backslash), wildcards and characters that
5882-
* are often illegal in a file name. */
5882+
* are often illegal in a file name. Be more permissive if "secure" is off.
5883+
*/
58835884
else if (((options[opt_idx].flags & P_NFNAME)
5884-
&& vim_strpbrk(*varp, (char_u *)"/\\*?[|;&<>\r\n") != NULL)
5885+
&& vim_strpbrk(*varp, (char_u *)(secure
5886+
? "/\\*?[|;&<>\r\n" : "/\\*?[<>\r\n")) != NULL)
58855887
|| ((options[opt_idx].flags & P_NDNAME)
58865888
&& vim_strpbrk(*varp, (char_u *)"*?[|;&<>\r\n") != NULL))
58875889
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
106,
767769
/**/
768770
105,
769771
/**/

0 commit comments

Comments
 (0)