diff options
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]; | 
