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 /src/ex_cmds2.c | |
parent | 50ab994ab34fcbe0046a9a998ee420be196334ba (diff) | |
download | vim-d94682ffb4fb479e99f375431f82d67b38255629.zip |
patch 7.4.697
Problem: The filename used for ":profile" must be given literally.
Solution: Expand "~" and environment variables. (Marco Hinz)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r-- | src/ex_cmds2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index 2cd762692..2763b6935 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); |