diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-03-24 11:21:20 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-03-24 14:17:40 +0100 |
commit | 998a16c926623a667ecb0228f4a6cd8ba1e90201 (patch) | |
tree | 00abaed092dd47e6e312a00f549ab62a4ded3a43 /src/nvim/syntax.c | |
parent | 84a25770ac4b1c18f0e6bd1e17bdda7eb3c6afa0 (diff) | |
download | rneovim-998a16c926623a667ecb0228f4a6cd8ba1e90201.tar.gz rneovim-998a16c926623a667ecb0228f4a6cd8ba1e90201.tar.bz2 rneovim-998a16c926623a667ecb0228f4a6cd8ba1e90201.zip |
refactor/rename: path_is_absolute()
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r-- | src/nvim/syntax.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index b2c28183a6..8ec393e568 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -4239,11 +4239,11 @@ static void syn_cmd_include(exarg_T *eap, int syncing) */ eap->argt |= (XFILE | NOSPC); separate_nextcmd(eap); - if (*eap->arg == '<' || *eap->arg == '$' || path_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. */ - source = TRUE; + if (*eap->arg == '<' || *eap->arg == '$' || path_is_absolute(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. + source = true; if (expand_filename(eap, syn_cmdlinep, &errormsg) == FAIL) { if (errormsg != NULL) EMSG(errormsg); |