0
0
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:
Bram Moolenaar
2019-01-12 15:15:38 +01:00
parent 5f6b379ff3
commit ea56e167c8
2 changed files with 4 additions and 3 deletions

View File

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

View File

@@ -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,
/**/ /**/