mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
@@ -12417,7 +12417,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv)
|
||||
is_relative_to_current = TRUE;
|
||||
|
||||
len = STRLEN(p);
|
||||
if (len > 0 && after_pathsep(p, p + len)) {
|
||||
if (len > 0 && after_pathsep((char *)p, (char *)p + len)) {
|
||||
has_trailing_pathsep = TRUE;
|
||||
p[len - 1] = NUL; /* the trailing slash breaks readlink() */
|
||||
}
|
||||
@@ -12531,7 +12531,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv)
|
||||
* if the argument had none. But keep "/" or "//". */
|
||||
if (!has_trailing_pathsep) {
|
||||
q = p + STRLEN(p);
|
||||
if (after_pathsep(p, q))
|
||||
if (after_pathsep((char *)p, (char *)q))
|
||||
*path_tail_with_sep(p) = NUL;
|
||||
}
|
||||
|
||||
@@ -19921,7 +19921,7 @@ repeat:
|
||||
valid |= VALID_HEAD;
|
||||
*usedlen += 2;
|
||||
s = get_past_head(*fnamep);
|
||||
while (tail > s && after_pathsep(s, tail))
|
||||
while (tail > s && after_pathsep((char *)s, (char *)tail))
|
||||
mb_ptr_back(*fnamep, tail);
|
||||
*fnamelen = (int)(tail - *fnamep);
|
||||
if (*fnamelen == 0) {
|
||||
@@ -19930,7 +19930,7 @@ repeat:
|
||||
*bufp = *fnamep = tail = vim_strsave((char_u *)".");
|
||||
*fnamelen = 1;
|
||||
} else {
|
||||
while (tail > s && !after_pathsep(s, tail))
|
||||
while (tail > s && !after_pathsep((char *)s, (char *)tail))
|
||||
mb_ptr_back(*fnamep, tail);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user