diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-18 13:31:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 13:31:28 +0200 |
commit | d351f1c871ee9901db389e164789ea33d3e1871f (patch) | |
tree | 5258690fd76a31d3befeb32ffae08f5b61eebfab /src/nvim/path.c | |
parent | c5efa9c352d63febd30764c04738f81e512b19f6 (diff) | |
parent | 3453a2ccb07f7de4f0160b906a70a72ded89ca14 (diff) | |
download | rneovim-d351f1c871ee9901db389e164789ea33d3e1871f.tar.gz rneovim-d351f1c871ee9901db389e164789ea33d3e1871f.tar.bz2 rneovim-d351f1c871ee9901db389e164789ea33d3e1871f.zip |
Merge #10679 from erw7/fix-oldtest-on-windows
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r-- | src/nvim/path.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c index 75a26d88c1..a58d57d566 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -852,8 +852,13 @@ static char_u *get_path_cutoff(char_u *fname, garray_T *gap) int j = 0; while ((fname[j] == path_part[i][j] - ) && fname[j] != NUL && path_part[i][j] != NUL) +#ifdef WIN32 + || (vim_ispathsep(fname[j]) && vim_ispathsep(path_part[i][j])) +#endif + ) // NOLINT(whitespace/parens) + && fname[j] != NUL && path_part[i][j] != NUL) { j++; + } if (j > maxlen) { maxlen = j; cutoff = &fname[j]; |