# HG changeset patch # User Bram Moolenaar # Date 1547303406 -3600 # Node ID 4880dc2ccc3f87d1eb82e986553052555e0a8f1c # Parent 913c93a50323eeb5412ec233c6b07da8807e53df patch 8.1.0732: cannot build without the eval feature commit https://github.com/vim/vim/commit/ea56e167c87352f07a77d3661425e336817a7141 Author: Bram Moolenaar Date: Sat Jan 12 15:15:38 2019 +0100 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. diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -4556,7 +4556,7 @@ do_source( } si = &SCRIPT_ITEM(current_sctx.sc_sid); si->sn_name = fname_exp; - fname_exp = NULL; + fname_exp = vim_strsave(si->sn_name); // used for autocmd # ifdef UNIX if (stat_ok) { @@ -4688,8 +4688,7 @@ almosttheend: #endif 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: vim_free(fname_exp); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -796,6 +796,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 732, +/**/ 731, /**/ 730,