forked from aniani/vim
updated for version 7.3.917
Problem: When a path ends in a backslash appending a comma has the wrong effect. Solution: Replace a trailing backslash with a slash. (Nazri Ramliy)
This commit is contained in:
@@ -10135,6 +10135,15 @@ expand_path_option(curdir, gap)
|
|||||||
|
|
||||||
if (ga_grow(gap, 1) == FAIL)
|
if (ga_grow(gap, 1) == FAIL)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
# if defined(MSWIN) || defined(MSDOS)
|
||||||
|
/* Avoid the path ending in a backslash, it fails when a comma is
|
||||||
|
* appended. */
|
||||||
|
len = STRLEN(buf);
|
||||||
|
if (buf[len - 1] == '\\')
|
||||||
|
buf[len - 1] = '/';
|
||||||
|
# endif
|
||||||
|
|
||||||
p = vim_strsave(buf);
|
p = vim_strsave(buf);
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
break;
|
break;
|
||||||
|
@@ -158,6 +158,16 @@ SVoyager 2:w
|
|||||||
:" Find the file containing 'E.T.' in the Xfind/in/path directory
|
:" Find the file containing 'E.T.' in the Xfind/in/path directory
|
||||||
:find file
|
:find file
|
||||||
:exec "w >>" . test_out
|
:exec "w >>" . test_out
|
||||||
|
:"
|
||||||
|
:" Test that completion works when path=.,,
|
||||||
|
:"
|
||||||
|
:set path=.,,
|
||||||
|
:" Open Jimmy Hoffa file
|
||||||
|
:e in/file.txt
|
||||||
|
:exec "w >>" . test_out
|
||||||
|
:" Search for the file containing Holy Grail in same directory as in/path.txt
|
||||||
|
:find stu
|
||||||
|
:exec "w >>" . test_out
|
||||||
:q
|
:q
|
||||||
:exec "cd " . cwd
|
:exec "cd " . cwd
|
||||||
:call DeleteDirectory("Xfind")
|
:call DeleteDirectory("Xfind")
|
||||||
|
@@ -17,3 +17,5 @@ Voyager 1
|
|||||||
Voyager 2
|
Voyager 2
|
||||||
Jimmy Hoffa
|
Jimmy Hoffa
|
||||||
E.T.
|
E.T.
|
||||||
|
Jimmy Hoffa
|
||||||
|
Another Holy Grail
|
||||||
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
917,
|
||||||
/**/
|
/**/
|
||||||
916,
|
916,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user