aboutsummaryrefslogtreecommitdiff
path: root/src/misc1.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/misc1.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/misc1.c')
-rw-r--r--src/misc1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 0fca08188b..770e870069 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -7945,7 +7945,7 @@ static void expand_path_option(char_u *curdir, garray_T *gap)
else if (path_with_url(buf))
/* URL can't be used here */
continue;
- else if (!mch_isFullName(buf)) {
+ else if (!mch_is_full_name(buf)) {
/* Expand relative path to their full path equivalent */
len = (int)STRLEN(curdir);
if (len + (int)STRLEN(buf) + 3 > MAXPATHL)
@@ -8086,7 +8086,7 @@ static void uniquefy_paths(garray_T *gap, char_u *pattern)
break;
}
- if (mch_isFullName(path)) {
+ if (mch_is_full_name(path)) {
/*
* Last resort: shorten relative to curdir if possible.
* 'possible' means:
@@ -8375,7 +8375,7 @@ gen_expand_wildcards (
*/
if (mch_has_exp_wildcard(p)) {
if ((flags & EW_PATH)
- && !mch_isFullName(p)
+ && !mch_is_full_name(p)
&& !(p[0] == '.'
&& (vim_ispathsep(p[1])
|| (p[1] == '.' && vim_ispathsep(p[2]))))