diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-08-08 10:59:17 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-08-08 10:59:17 +0000 |
commit | 1b24e4b59901627fb6ac0303dd27b94f8bb2c396 (patch) | |
tree | 4bab71d94c65884f78990dceaa26e773ac36176a /src | |
parent | dc9cf9cd6d48ad9c6e25427f958401adc4a913ac (diff) |
updated for version 7.2c-002v7.2c.002
Diffstat (limited to 'src')
-rw-r--r-- | src/ex_getln.c | 10 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index c9760d1dba..994fe2aa34 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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; } /* diff --git a/src/version.c b/src/version.c index c8565c447a..6730cc0fd7 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2, +/**/ 1, /**/ 0 |