From c90ac66d2827d2a72b21322e5326d31786d3e005 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 13 Apr 2015 15:38:04 +0200 Subject: [PATCH] patch 7.4.697 Problem: The filename used for ":profile" must be given literally. Solution: Expand "~" and environment variables. (Marco Hinz) --- src/ex_cmds2.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 08386ff9ee..9153c345bc 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -1108,7 +1108,7 @@ ex_profile(eap) if (len == 5 && STRNCMP(eap->arg, "start", 5) == 0 && *e != NUL) { vim_free(profile_fname); - profile_fname = vim_strsave(e); + profile_fname = expand_env_save_opt(e, TRUE); do_profiling = PROF_YES; profile_zero(&prof_wait_time); set_vim_var_nr(VV_PROFILING, 1L); diff --git a/src/version.c b/src/version.c index 80ed49b12c..28100ec62c 100644 --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 697, /**/ 696, /**/