Mercurial > vim
changeset 15188:2d8c31ae1e24 v8.1.0604
patch 8.1.0604: autocommand test fails on MS-Windows
commit https://github.com/vim/vim/commit/9eb76af451ddd8eaad0cd5dd629f18c4f4035171
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 16 Dec 2018 16:45:05 +0100 |
parents | 0cfd0fb15db0 |
children | 9a93ea72e175 |
files | src/ex_docmd.c src/misc2.c src/version.c |
diffstat | 3 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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