aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/autocmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-06-07 09:29:12 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-06-07 09:49:17 +0800
commitdd24ea819507e3a5da04df55df7dda5240e5b57f (patch)
tree3c4cd503d1e881b68feaa5c235906f6f9ca7949b /src/nvim/autocmd.c
parent971049f3189d4769db5e9896cd19b555719b3d09 (diff)
downloadrneovim-dd24ea819507e3a5da04df55df7dda5240e5b57f.tar.gz
rneovim-dd24ea819507e3a5da04df55df7dda5240e5b57f.tar.bz2
rneovim-dd24ea819507e3a5da04df55df7dda5240e5b57f.zip
fix(events): don't expand non-file as file name
Diffstat (limited to 'src/nvim/autocmd.c')
-rw-r--r--src/nvim/autocmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c
index 564a7b4f87..427bce0e80 100644
--- a/src/nvim/autocmd.c
+++ b/src/nvim/autocmd.c
@@ -1676,6 +1676,7 @@ bool apply_autocmds_group(event_T event, char *fname, char *fname_io, bool force
|| event == EVENT_USER || event == EVENT_WINCLOSED
|| event == EVENT_WINRESIZED || event == EVENT_WINSCROLLED) {
fname = xstrdup(fname);
+ autocmd_fname_full = true; // don't expand it later
} else {
fname = FullName_save(fname, false);
}