mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
vim-patch:8.1.0732: cannot build without the eval feature
Problem: Cannot build without the eval feature.
Solution: Make a copy of the sourced file name.
ea56e167c8
This commit is contained in:
@@ -3186,7 +3186,7 @@ int do_source(char_u *fname, int check_other, int is_vimrc)
|
|||||||
}
|
}
|
||||||
si = &SCRIPT_ITEM(current_SID);
|
si = &SCRIPT_ITEM(current_SID);
|
||||||
si->sn_name = fname_exp;
|
si->sn_name = fname_exp;
|
||||||
fname_exp = NULL;
|
fname_exp = vim_strsave(si->sn_name); // used for autocmd
|
||||||
if (file_id_ok) {
|
if (file_id_ok) {
|
||||||
si->file_id_valid = true;
|
si->file_id_valid = true;
|
||||||
si->file_id = file_id;
|
si->file_id = file_id;
|
||||||
@@ -3288,7 +3288,7 @@ int do_source(char_u *fname, int check_other, int is_vimrc)
|
|||||||
convert_setup(&cookie.conv, NULL, NULL);
|
convert_setup(&cookie.conv, NULL, NULL);
|
||||||
|
|
||||||
if (trigger_source_post) {
|
if (trigger_source_post) {
|
||||||
apply_autocmds(EVENT_SOURCEPOST, si->sn_name, si->sn_name, false, curbuf);
|
apply_autocmds(EVENT_SOURCEPOST, fname_exp, fname_exp, false, curbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
theend:
|
theend:
|
||||||
|
Reference in New Issue
Block a user