diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-12-13 02:46:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-13 02:46:12 +0100 |
commit | 1cca5da05ff1a35cfdb930be82449705507ec661 (patch) | |
tree | 20f58b62ef6fafad7c39ce1a91c2e2f98cf91b59 /src/nvim/ex_docmd.c | |
parent | af368981a7ce817391a03dae5816d167aa2dc189 (diff) | |
parent | 4157f4c72db7eab71b9670d517a8cbd3ed8909ba (diff) | |
download | rneovim-1cca5da05ff1a35cfdb930be82449705507ec661.tar.gz rneovim-1cca5da05ff1a35cfdb930be82449705507ec661.tar.bz2 rneovim-1cca5da05ff1a35cfdb930be82449705507ec661.zip |
Merge #9348 from janlazo/vim-8.0.1748
vim-patch:8.0.1748
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 6361267d9b..4ef332186e 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -8654,7 +8654,10 @@ eval_vars ( break; case SPEC_AFILE: // file name for autocommand - if (autocmd_fname != NULL && !path_is_absolute(autocmd_fname)) { + if (autocmd_fname != NULL + && !path_is_absolute(autocmd_fname) + // For CmdlineEnter and related events, <afile> is not a path! #9348 + && !strequal("/", (char *)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); |