Mercurial > vim
changeset 19356:f559be3c53d7 v8.2.0236
patch 8.2.0236: MS-Windows unintall doesn't delete vimtutur.bat
Commit: https://github.com/vim/vim/commit/57ea2924e5dd14aac716a1ee349bdb61f6429f59
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 09 Feb 2020 14:30:09 +0100 |
parents | c8aabac6f164 |
children | 3e040669b87f |
files | src/uninstall.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }