aboutsummaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-03 15:28:28 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-04 06:54:08 -0300
commit92a0374d7b6b27cb91e51e5cfe735fbde100632c (patch)
tree7599eacc421b28d301f4ba2690dba1cc8ad6ed87 /src/eval.c
parent7e8c8cf5a1552602f5fb7308f77291c3e6a71779 (diff)
downloadrneovim-92a0374d7b6b27cb91e51e5cfe735fbde100632c.tar.gz
rneovim-92a0374d7b6b27cb91e51e5cfe735fbde100632c.tar.bz2
rneovim-92a0374d7b6b27cb91e51e5cfe735fbde100632c.zip
Rename and refactor mch_FullName.
* Rename mch_FullName to mch_full_name to match the style guide. * Add mch_full_dir_name, which saves the absolute path of a given directory relative to cwd into a given buffer. * Add function append_path, which glues together two given paths with a slash. * Adapt moonscript coding style to the tests.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 08496e05bd..4eee644536 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -12467,7 +12467,7 @@ static void f_resolve(typval_T *argvars, typval_T *rettv)
q[-1] = NUL;
q = gettail(p);
}
- if (q > p && !mch_isFullName(buf)) {
+ if (q > p && !mch_is_full_name(buf)) {
/* symlink is relative to directory of argument */
cpy = alloc((unsigned)(STRLEN(p) + STRLEN(buf) + 1));
if (cpy != NULL) {