patch 8.2.1386: backslash not removed afer space with space in 'isfname'
Problem: Backslash not removed afer space in option with space in
'isfname'.
Solution: Do remove backslash before space, also when it is in 'isfname'.
(Yasuhiro Matsumoto, closes #6651)
diff --git a/src/option.c b/src/option.c
index f66fad9..648f22d 100644
--- a/src/option.c
+++ b/src/option.c
@@ -1311,12 +1311,12 @@
{
if (flags & (P_SECURE | P_NO_ML))
{
- errmsg = _("E520: Not allowed in a modeline");
+ errmsg = N_("E520: Not allowed in a modeline");
goto skip;
}
if ((flags & P_MLE) && !p_mle)
{
- errmsg = _("E992: Not allowed in a modeline when 'modelineexpr' is off");
+ errmsg = N_("E992: Not allowed in a modeline when 'modelineexpr' is off");
goto skip;
}
#ifdef FEAT_DIFF
@@ -1338,7 +1338,7 @@
// Disallow changing some options in the sandbox
if (sandbox != 0 && (flags & P_SECURE))
{
- errmsg = _(e_sandbox);
+ errmsg = e_sandbox;
goto skip;
}
#endif
@@ -1763,6 +1763,7 @@
#ifdef BACKSLASH_IN_FILENAME
&& !((flags & P_EXPAND)
&& vim_isfilec(arg[1])
+ && !VIM_ISWHITE(arg[1])
&& (arg[1] != '\\'
|| (s == newval
&& arg[2] != '\\')))