diff --git a/src/filepath.c b/src/filepath.c index 7d115eeda6..d8a1dce742 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -3709,9 +3709,14 @@ dos_expandpath( vim_snprintf((char *)buf + len, buflen - len, "%s", path_end); if (mch_has_exp_wildcard(path_end)) { - // need to expand another component of the path - // remove backslashes for the remaining components only - (void)dos_expandpath(gap, buf, len + 1, flags, FALSE); + if (stardepth < 100) + { + // need to expand another component of the path + // remove backslashes for the remaining components only + ++stardepth; + (void)dos_expandpath(gap, buf, len + 1, flags, FALSE); + --stardepth; + } } else { @@ -3950,9 +3955,14 @@ unix_expandpath( vim_snprintf((char *)buf + len, buflen - len, "%s", path_end); if (mch_has_exp_wildcard(path_end)) // handle more wildcards { - // need to expand another component of the path - // remove backslashes for the remaining components only - (void)unix_expandpath(gap, buf, len + 1, flags, FALSE); + if (stardepth < 100) + { + // need to expand another component of the path + // remove backslashes for the remaining components only + ++stardepth; + (void)unix_expandpath(gap, buf, len + 1, flags, FALSE); + --stardepth; + } } else { diff --git a/src/version.c b/src/version.c index bedb8ec0bd..b0ce4f3110 100644 --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1690, /**/ 1689, /**/