aboutsummaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-05 12:34:15 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-06 13:10:58 -0300
commitfc8686640250561156913387c62924d2bdb5e1ac (patch)
tree470fc2e2d3cfdf978dceb565a099b67285717efe /src/syntax.c
parentfdba1761f655ece7d6124570d20cc498c67f947e (diff)
downloadrneovim-fc8686640250561156913387c62924d2bdb5e1ac.tar.gz
rneovim-fc8686640250561156913387c62924d2bdb5e1ac.tar.bz2
rneovim-fc8686640250561156913387c62924d2bdb5e1ac.zip
Fix style issues.
* Rename mch_full_name to mch_get_absolute_path. * Rename mch_is_full_name to mch_is_absolute_path. * Add a lot of missing parentheses. * Remove yoda-conditions for consistency. * Remove spaces in function declaration.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 5361ea4be3..5c4ed03030 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -4188,7 +4188,7 @@ static void syn_cmd_include(exarg_T *eap, int syncing)
*/
eap->argt |= (XFILE | NOSPC);
separate_nextcmd(eap);
- if (*eap->arg == '<' || *eap->arg == '$' || mch_is_full_name(eap->arg)) {
+ if (*eap->arg == '<' || *eap->arg == '$' || mch_is_absolute_path(eap->arg)) {
/* For an absolute path, "$VIM/..." or "<sfile>.." we ":source" the
* file. Need to expand the file name first. In other cases
* ":runtime!" is used. */