# HG changeset patch # User Bram Moolenaar # Date 1581255009 -3600 # Node ID f559be3c53d729d73e11b147aab8e1220112adc7 # Parent c8aabac6f1640c68558130448659cc64c338f194 patch 8.2.0236: MS-Windows unintall doesn't delete vimtutur.bat Commit: https://github.com/vim/vim/commit/57ea2924e5dd14aac716a1ee349bdb61f6429f59 Author: Bram Moolenaar Date: Sun Feb 9 14:27:20 2020 +0100 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 https://github.com/vim/vim/issues/5603) diff --git a/src/uninstall.c b/src/uninstall.c --- a/src/uninstall.c +++ b/src/uninstall.c @@ -233,6 +233,10 @@ remove_batfiles(int doit) int i; 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) { batfile_path = searchpath_save(targets[i].batname); @@ -249,6 +253,8 @@ remove_batfiles(int doit) free(batfile_path); } } + + mch_chdir(installdir); return found; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 236, +/**/ 235, /**/ 234,