0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.0236: MS-Windows unintall doesn't delete vimtutur.bat

Problem:    MS-Windows unintall doesn't delete vimtutur.bat.
Solution:   Change directory before deletion. (Ken Takata, closes #5603)
This commit is contained in:
Bram Moolenaar
2020-02-09 14:27:20 +01:00
parent dbe5d361fe
commit 57ea2924e5
2 changed files with 8 additions and 0 deletions

View File

@@ -233,6 +233,10 @@ remove_batfiles(int doit)
int i; int i;
int found = 0; int found = 0;
// avoid looking in the "installdir" by chdir to system root
mch_chdir(sysdrive);
mch_chdir("\\");
for (i = 1; i < TARGET_COUNT; ++i) for (i = 1; i < TARGET_COUNT; ++i)
{ {
batfile_path = searchpath_save(targets[i].batname); batfile_path = searchpath_save(targets[i].batname);
@@ -249,6 +253,8 @@ remove_batfiles(int doit)
free(batfile_path); free(batfile_path);
} }
} }
mch_chdir(installdir);
return found; return found;
} }

View File

@@ -742,6 +742,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 */
/**/
236,
/**/ /**/
235, 235,
/**/ /**/