fix(events): don't expand non-file as file name

This commit is contained in:
zeertzjq
2023-06-07 09:29:12 +08:00
parent 971049f318
commit dd24ea8195
3 changed files with 21 additions and 18 deletions

View File

@@ -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);
}