mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
refactor/rename: path_is_absolute()
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user