From 92a0374d7b6b27cb91e51e5cfe735fbde100632c Mon Sep 17 00:00:00 2001 From: Thomas Wienecke Date: Mon, 3 Mar 2014 15:28:28 +0100 Subject: 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. --- src/syntax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/syntax.c') diff --git a/src/syntax.c b/src/syntax.c index fb3285729f..ba33f16e23 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -4187,7 +4187,7 @@ static void syn_cmd_include(exarg_T *eap, int syncing) */ eap->argt |= (XFILE | NOSPC); separate_nextcmd(eap); - if (*eap->arg == '<' || *eap->arg == '$' || mch_isFullName(eap->arg)) { + if (*eap->arg == '<' || *eap->arg == '$' || mch_is_full_name(eap->arg)) { /* For an absolute path, "$VIM/..." or ".." we ":source" the * file. Need to expand the file name first. In other cases * ":runtime!" is used. */ -- cgit