mirror of
https://github.com/vim/vim.git
synced 2025-08-22 19:27:53 -04:00
patch 7.4.1117
Problem: No longer get "." and ".." in directory list. Solution: Do not skip "." and ".." unless EW_DODOT is set.
This commit is contained in:
parent
b0967d587f
commit
d82103ed85
10
src/misc1.c
10
src/misc1.c
@ -10013,7 +10013,7 @@ dos_expandpath(
|
|||||||
if (p[0] == '*' && p[1] == '*')
|
if (p[0] == '*' && p[1] == '*')
|
||||||
starstar = TRUE;
|
starstar = TRUE;
|
||||||
|
|
||||||
starts_with_dot = *s == '.' || (flags & EW_DODOT);
|
starts_with_dot = *s == '.';
|
||||||
pat = file_pat_to_reg_pat(s, e, NULL, FALSE);
|
pat = file_pat_to_reg_pat(s, e, NULL, FALSE);
|
||||||
if (pat == NULL)
|
if (pat == NULL)
|
||||||
{
|
{
|
||||||
@ -10096,7 +10096,8 @@ dos_expandpath(
|
|||||||
#endif
|
#endif
|
||||||
/* Ignore entries starting with a dot, unless when asked for. Accept
|
/* Ignore entries starting with a dot, unless when asked for. Accept
|
||||||
* all entries found with "matchname". */
|
* all entries found with "matchname". */
|
||||||
if ((p[0] != '.' || (starts_with_dot
|
if ((p[0] != '.' || starts_with_dot
|
||||||
|
|| ((flags & EW_DODOT)
|
||||||
&& p[1] != NUL && (p[1] != '.' || p[2] != NUL)))
|
&& p[1] != NUL && (p[1] != '.' || p[2] != NUL)))
|
||||||
&& (matchname == NULL
|
&& (matchname == NULL
|
||||||
|| (regmatch.regprog != NULL
|
|| (regmatch.regprog != NULL
|
||||||
@ -10326,7 +10327,7 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
|
|||||||
starstar = TRUE;
|
starstar = TRUE;
|
||||||
|
|
||||||
/* convert the file pattern to a regexp pattern */
|
/* convert the file pattern to a regexp pattern */
|
||||||
starts_with_dot = *s == '.' || (flags & EW_DODOT);
|
starts_with_dot = *s == '.';
|
||||||
pat = file_pat_to_reg_pat(s, e, NULL, FALSE);
|
pat = file_pat_to_reg_pat(s, e, NULL, FALSE);
|
||||||
if (pat == NULL)
|
if (pat == NULL)
|
||||||
{
|
{
|
||||||
@ -10375,7 +10376,8 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
|
|||||||
dp = readdir(dirp);
|
dp = readdir(dirp);
|
||||||
if (dp == NULL)
|
if (dp == NULL)
|
||||||
break;
|
break;
|
||||||
if ((dp->d_name[0] != '.' || (starts_with_dot
|
if ((dp->d_name[0] != '.' || starts_with_dot
|
||||||
|
|| ((flags & EW_DODOT)
|
||||||
&& dp->d_name[1] != NUL
|
&& dp->d_name[1] != NUL
|
||||||
&& (dp->d_name[1] != '.' || dp->d_name[2] != NUL)))
|
&& (dp->d_name[1] != '.' || dp->d_name[2] != NUL)))
|
||||||
&& ((regmatch.regprog != NULL && vim_regexec(®match,
|
&& ((regmatch.regprog != NULL && vim_regexec(®match,
|
||||||
|
@ -741,6 +741,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 */
|
||||||
|
/**/
|
||||||
|
1117,
|
||||||
/**/
|
/**/
|
||||||
1116,
|
1116,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user