diff options
author | Mark Bainter <mbainter+github@gmail.com> | 2015-04-12 20:36:34 +0000 |
---|---|---|
committer | Mark Bainter <mbainter+github@gmail.com> | 2015-04-17 14:46:58 +0000 |
commit | 9a5e87ac83d2a0f88c183e13695910e950fd457b (patch) | |
tree | 4f472314f96782c0aac8ba7282f4a84eb155d3b9 /src/nvim/eval.c | |
parent | c1a3d289d69b93092247e0eca3bf4b43992791a1 (diff) | |
download | rneovim-9a5e87ac83d2a0f88c183e13695910e950fd457b.tar.gz rneovim-9a5e87ac83d2a0f88c183e13695910e950fd457b.tar.bz2 rneovim-9a5e87ac83d2a0f88c183e13695910e950fd457b.zip |
Remove char_u: after_pathstep()
See: #459
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index d6a8351330..8444432350 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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); } } |