forked from aniani/vim
updated for version 7.1-121
This commit is contained in:
19
src/eval.c
19
src/eval.c
@@ -21308,14 +21308,27 @@ repeat:
|
|||||||
*usedlen += 2;
|
*usedlen += 2;
|
||||||
s = get_past_head(*fnamep);
|
s = get_past_head(*fnamep);
|
||||||
while (tail > s && after_pathsep(s, tail))
|
while (tail > s && after_pathsep(s, tail))
|
||||||
--tail;
|
mb_ptr_back(*fnamep, tail);
|
||||||
*fnamelen = (int)(tail - *fnamep);
|
*fnamelen = (int)(tail - *fnamep);
|
||||||
#ifdef VMS
|
#ifdef VMS
|
||||||
if (*fnamelen > 0)
|
if (*fnamelen > 0)
|
||||||
*fnamelen += 1; /* the path separator is part of the path */
|
*fnamelen += 1; /* the path separator is part of the path */
|
||||||
#endif
|
#endif
|
||||||
while (tail > s && !after_pathsep(s, tail))
|
if (*fnamelen == 0)
|
||||||
mb_ptr_back(*fnamep, tail);
|
{
|
||||||
|
/* Result is empty. Turn it into "." to make ":cd %:h" work. */
|
||||||
|
p = vim_strsave((char_u *)".");
|
||||||
|
if (p == NULL)
|
||||||
|
return -1;
|
||||||
|
vim_free(*bufp);
|
||||||
|
*bufp = *fnamep = tail = p;
|
||||||
|
*fnamelen = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
while (tail > s && !after_pathsep(s, tail))
|
||||||
|
mb_ptr_back(*fnamep, tail);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ":8" - shortname */
|
/* ":8" - shortname */
|
||||||
|
@@ -666,6 +666,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 */
|
||||||
|
/**/
|
||||||
|
121,
|
||||||
/**/
|
/**/
|
||||||
120,
|
120,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user