We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd07c02 commit 0dc5f60Copy full SHA for 0dc5f60
2 files changed
src/filepath.c
@@ -3360,7 +3360,10 @@ dos_expandpath(
3360
if (p == NULL)
3361
break; // out of memory
3362
3363
- if (*wfb.cAlternateFileName == NUL)
+ // Do not use the alternate filename when the file name ends in '~',
3364
+ // because it picks up backup files: short name for "foo.vim~" is
3365
+ // "foo~1.vim", which matches "*.vim".
3366
+ if (*wfb.cAlternateFileName == NUL || p[STRLEN(p) - 1] == '~')
3367
p_alt = NULL;
3368
else
3369
p_alt = utf16_to_enc(wfb.cAlternateFileName, NULL);
src/version.c
@@ -750,6 +750,8 @@ static char *(features[]) =
750
751
static int included_patches[] =
752
{ /* Add new patch number below this line */
753
+/**/
754
+ 2478,
755
/**/
756
2477,
757
0 commit comments