aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-24 16:07:11 +0100
committerGitHub <noreply@github.com>2018-03-24 16:07:11 +0100
commit1b61167373420440535cb975804fd9e728025011 (patch)
treebdd88851fad1197bc0965647a8525e0fb86b1841 /src/nvim/ex_docmd.c
parent84a25770ac4b1c18f0e6bd1e17bdda7eb3c6afa0 (diff)
parent0ecf7e3a2d3bf4c8062ebf1d462a16d716a37352 (diff)
downloadrneovim-1b61167373420440535cb975804fd9e728025011.tar.gz
rneovim-1b61167373420440535cb975804fd9e728025011.tar.bz2
rneovim-1b61167373420440535cb975804fd9e728025011.zip
Merge #8168 'refactor: rename some functions'
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index a0966dc1fc..eb6d7ad815 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -8547,7 +8547,7 @@ eval_vars (
break;
case SPEC_AFILE: // file name for autocommand
- if (autocmd_fname != NULL && !path_is_absolute_path(autocmd_fname)) {
+ if (autocmd_fname != NULL && !path_is_absolute(autocmd_fname)) {
// Still need to turn the fname into a full path. It was
// postponed to avoid a delay when <afile> is not used.
result = (char_u *)FullName_save((char *)autocmd_fname, false);
@@ -8561,7 +8561,7 @@ eval_vars (
"E495: no autocommand file name to substitute for \"<afile>\"");
return NULL;
}
- result = path_shorten_fname_if_possible(result);
+ result = path_try_shorten_fname(result);
break;
case SPEC_ABUF: /* buffer number for autocommand */