mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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.
This commit is contained in:
@@ -4556,7 +4556,7 @@ do_source(
|
|||||||
}
|
}
|
||||||
si = &SCRIPT_ITEM(current_sctx.sc_sid);
|
si = &SCRIPT_ITEM(current_sctx.sc_sid);
|
||||||
si->sn_name = fname_exp;
|
si->sn_name = fname_exp;
|
||||||
fname_exp = NULL;
|
fname_exp = vim_strsave(si->sn_name); // used for autocmd
|
||||||
# ifdef UNIX
|
# ifdef UNIX
|
||||||
if (stat_ok)
|
if (stat_ok)
|
||||||
{
|
{
|
||||||
@@ -4688,8 +4688,7 @@ almosttheend:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (trigger_source_post)
|
if (trigger_source_post)
|
||||||
apply_autocmds(EVENT_SOURCEPOST, si->sn_name, si->sn_name,
|
apply_autocmds(EVENT_SOURCEPOST, fname_exp, fname_exp, FALSE, curbuf);
|
||||||
FALSE, curbuf);
|
|
||||||
|
|
||||||
theend:
|
theend:
|
||||||
vim_free(fname_exp);
|
vim_free(fname_exp);
|
||||||
|
@@ -795,6 +795,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
732,
|
||||||
/**/
|
/**/
|
||||||
731,
|
731,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user