diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-09-18 19:29:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-09-18 19:29:58 +0000 |
commit | f6dad43c98f47da1ff9d8c99b320fc3674f83c63 (patch) | |
tree | e956653315763340037966b29ae54cc3a1703c43 /src/ex_docmd.c | |
parent | 806875ddb541c72263ea3350fb643ce07fb9036b (diff) |
updated for version 7.2-021v7.2.021
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 509805f86c..84099a7cf1 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -9542,6 +9542,15 @@ eval_vars(src, srcstart, usedlen, lnump, errormsg, escaped) #ifdef FEAT_AUTOCMD case SPEC_AFILE: /* file name for autocommand */ result = autocmd_fname; + if (result != NULL && !autocmd_fname_full) + { + /* Still need to turn the fname into a full path. It is + * postponed to avoid a delay when <afile> is not used. */ + autocmd_fname_full = TRUE; + result = FullName_save(autocmd_fname, FALSE); + vim_free(autocmd_fname); + autocmd_fname = result; + } if (result == NULL) { *errormsg = (char_u *)_("E495: no autocommand file name to substitute for \"<afile>\""); |