summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-04-13 15:37:56 +0200
committerBram Moolenaar <Bram@vim.org>2015-04-13 15:37:56 +0200
commitd94682ffb4fb479e99f375431f82d67b38255629 (patch)
treec2c3f3f9ff347ed0f92b452ddbd267ec1deb87da /src/ex_cmds2.c
parent50ab994ab34fcbe0046a9a998ee420be196334ba (diff)
patch 7.4.697v7.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.c2
1 files changed, 1 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);