From ea56e167c87352f07a77d3661425e336817a7141 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 12 Jan 2019 15:15:38 +0100 Subject: [PATCH] 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. --- src/ex_cmds2.c | 5 ++--- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 4d48c1beb..b3678b15c 100644 --- 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 index d7c610bc9..092077fa6 100644 --- a/src/version.c +++ b/src/version.c @@ -795,6 +795,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 732, /**/ 731, /**/ -- 2.40.0