# HG changeset patch # User Bram Moolenaar # Date 1544975105 -3600 # Node ID 2d8c31ae1e241a2d07364839884bcd21c3b62d4e # Parent 0cfd0fb15db053ee7b6d8269ca18f84b2ef6ff98 patch 8.1.0604: autocommand test fails on MS-Windows commit https://github.com/vim/vim/commit/9eb76af451ddd8eaad0cd5dd629f18c4f4035171 Author: Bram Moolenaar Date: Sun Dec 16 16:30:21 2018 +0100 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. diff --git a/src/ex_docmd.c b/src/ex_docmd.c --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -9185,7 +9185,7 @@ ex_cd(exarg_T *eap) } #endif dir_differs = new_dir == NULL || prev_dir == NULL - || STRCMP(prev_dir, new_dir) != 0; + || pathcmp((char *)prev_dir, (char *)new_dir, -1) != 0; if (new_dir == NULL || (dir_differs && vim_chdir(new_dir))) EMSG(_(e_failed)); else diff --git a/src/misc2.c b/src/misc2.c --- a/src/misc2.c +++ b/src/misc2.c @@ -3402,7 +3402,7 @@ vim_chdirfile(char_u *fname, char *trigg 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -800,6 +800,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 604, +/**/ 603, /**/ 602,