diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-30 15:30:10 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-03 10:32:41 -0300 |
commit | 7021b970b9e8b3f9b9fe71546bfb3aa30851abd2 (patch) | |
tree | 6d7d79452963fec9b10dbaa24778175ea1829268 /src/eval.c | |
parent | 77bfb6cd990c67e4191d4858af82de42303e1939 (diff) | |
download | rneovim-7021b970b9e8b3f9b9fe71546bfb3aa30851abd2.tar.gz rneovim-7021b970b9e8b3f9b9fe71546bfb3aa30851abd2.tar.bz2 rneovim-7021b970b9e8b3f9b9fe71546bfb3aa30851abd2.zip |
Test and refactor gettail_sep -> path_tail_with_seperator.
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 60fc381f88..a2bfb19dd4 100644 --- a/src/eval.c +++ b/src/eval.c @@ -11657,7 +11657,7 @@ static int mkdir_recurse(char_u *dir, int prot) /* Get end of directory name in "dir". * We're done when it's "/" or "c:/". */ - p = gettail_sep(dir); + p = path_tail_with_seperator(dir); if (p <= get_past_head(dir)) return OK; @@ -11693,7 +11693,7 @@ static void f_mkdir(typval_T *argvars, typval_T *rettv) else { if (*path_tail(dir) == NUL) /* remove trailing slashes */ - *gettail_sep(dir) = NUL; + *path_tail_with_seperator(dir) = NUL; if (argvars[1].v_type != VAR_UNKNOWN) { if (argvars[2].v_type != VAR_UNKNOWN) @@ -12544,7 +12544,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv) if (!has_trailing_pathsep) { q = p + STRLEN(p); if (after_pathsep(p, q)) - *gettail_sep(p) = NUL; + *path_tail_with_seperator(p) = NUL; } rettv->vval.v_string = p; |