diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-04-13 15:37:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-04-13 15:37:56 +0200 |
commit | d94682ffb4fb479e99f375431f82d67b38255629 (patch) | |
tree | c2c3f3f9ff347ed0f92b452ddbd267ec1deb87da | |
parent | 50ab994ab34fcbe0046a9a998ee420be196334ba (diff) |
patch 7.4.697v7.4.697
Problem: The filename used for ":profile" must be given literally.
Solution: Expand "~" and environment variables. (Marco Hinz)
-rw-r--r-- | src/ex_cmds2.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 2cd762692c..2763b69354 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 21261e4d2c..6cc84c2aef 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 697, +/**/ 696, /**/ 695, |