]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.0732: cannot build without the eval feature v8.1.0732
authorBram Moolenaar <Bram@vim.org>
Sat, 12 Jan 2019 14:15:38 +0000 (15:15 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Jan 2019 14:15:38 +0000 (15:15 +0100)
Problem:    Cannot build without the eval feature.
Solution:   Make a copy of the sourced file name.

src/ex_cmds2.c
src/version.c

index 4d48c1beb571d4259fb5b39af02aea5515452669..b3678b15cb2dd8ee6ac268f76da5293537b6f47d 100644 (file)
@@ -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);
index d7c610bc94641921fcb48d09339e92c12ee7bab0..092077fa6f79c8e34d1e7bbbdc8eb60548843c2c 100644 (file)
@@ -795,6 +795,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    732,
 /**/
     731,
 /**/