0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 8.1.0604: autocommand test fails on MS-Windows

Problem:    Autocommand test fails on MS-Windows.
Solution:   Use pathcmp() instead of strcmp() to check if a directory differs.
This commit is contained in:
Bram Moolenaar
2018-12-16 16:30:21 +01:00
parent e751a5f531
commit 9eb76af451
3 changed files with 4 additions and 2 deletions

View File

@@ -3402,7 +3402,7 @@ vim_chdirfile(char_u *fname, char *trigger_autocmd)
vim_strncpy(new_dir, fname, MAXPATHL - 1);
*gettail_sep(new_dir) = NUL;
if (STRCMP(old_dir, new_dir) == 0)
if (pathcmp((char *)old_dir, (char *)new_dir, -1) == 0)
// nothing to do
res = OK;
else