diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-30 20:06:04 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-03 10:32:41 -0300 |
commit | 955d6a29496d9f7902e95f4a2cc01fedd56e4a21 (patch) | |
tree | a4f66e7d0572840487e898ebe93df2315bb3ec2c /src/eval.c | |
parent | 7021b970b9e8b3f9b9fe71546bfb3aa30851abd2 (diff) | |
download | rneovim-955d6a29496d9f7902e95f4a2cc01fedd56e4a21.tar.gz rneovim-955d6a29496d9f7902e95f4a2cc01fedd56e4a21.tar.bz2 rneovim-955d6a29496d9f7902e95f4a2cc01fedd56e4a21.zip |
Test and refactor getnextcomp -> path_next_component.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c index a2bfb19dd4..ed519ff378 100644 --- a/src/eval.c +++ b/src/eval.c @@ -12422,7 +12422,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv) p[len - 1] = NUL; /* the trailing slash breaks readlink() */ } - q = getnextcomp(p); + q = path_next_component(p); if (*q != NUL) { /* Separate the first path component in "p", and keep the * remainder (beginning with the path separator). */ @@ -12456,7 +12456,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv) /* Separate the first path component in the link value and * concatenate the remainders. */ - q = getnextcomp(vim_ispathsep(*buf) ? buf + 1 : buf); + q = path_next_component(vim_ispathsep(*buf) ? buf + 1 : buf); if (*q != NUL) { if (remain == NULL) remain = vim_strsave(q - 1); @@ -12495,7 +12495,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv) break; /* Append the first path component of "remain" to "p". */ - q = getnextcomp(remain + 1); + q = path_next_component(remain + 1); len = q - remain - (*q != NUL); cpy = vim_strnsave(p, STRLEN(p) + len); if (cpy != NULL) { |