forked from aniani/vim
updated for version 7.2c-002
This commit is contained in:
@@ -3717,7 +3717,7 @@ vim_strsave_fnameescape(fname, shell)
|
||||
if ((*p != '[' && *p != '{') || !vim_isfilec(*p))
|
||||
buf[j++] = *p;
|
||||
buf[j] = NUL;
|
||||
return vim_strsave_escaped(fname, buf);
|
||||
p = vim_strsave_escaped(fname, buf);
|
||||
#else
|
||||
p = vim_strsave_escaped(fname, shell ? SHELL_ESC_CHARS : PATH_ESC_CHARS);
|
||||
if (shell && csh_like_shell() && p != NULL)
|
||||
@@ -3730,8 +3730,14 @@ vim_strsave_fnameescape(fname, shell)
|
||||
vim_free(p);
|
||||
p = s;
|
||||
}
|
||||
return p;
|
||||
#endif
|
||||
|
||||
/* '>' and '+' are special at the start of some commands, e.g. ":edit" and
|
||||
* ":write". "cd -" has a special meaning. */
|
||||
if (*p == '>' || *p == '+' || (*p == '-' && p[1] == NUL))
|
||||
escape_fname(&p);
|
||||
|
||||
return p;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user