win: explicitly specify pathsep

This commit is contained in:
Jan Edmund Lazo
2018-01-11 16:27:10 -05:00
parent e39be42c09
commit ec5af91b90

View File

@@ -2202,9 +2202,9 @@ static int path_get_absolute_path(const char_u *fname, char_u *buf,
// expand it if forced or not an absolute path // expand it if forced or not an absolute path
if (force || !path_is_absolute_path(fname)) { if (force || !path_is_absolute_path(fname)) {
p = vim_strrchr(fname, PATHSEP); p = vim_strrchr(fname, '/');
#ifdef WIN32 #ifdef WIN32
if (p == NULL) p = vim_strrchr(fname, '/'); if (p == NULL) p = vim_strrchr(fname, '\\');
#endif #endif
if (p != NULL) { if (p != NULL) {
// relative to root // relative to root