From e4975f82c9704aa5d52e18e578a449268654ee37 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 10 Apr 2015 13:05:57 +0200 Subject: Expand :profile's filename #2390 vim_strsave() is replaced by expand_env_save_opt(), which expands ~ for convenience: :profile start ~/.nvim/prof.log Prior to this change you had to specify an absolute path. --- src/nvim/ex_cmds2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index cd1b066fdd..177e404e35 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -760,7 +760,7 @@ void ex_profile(exarg_T *eap) if (len == 5 && STRNCMP(eap->arg, "start", 5) == 0 && *e != NUL) { free(profile_fname); - profile_fname = vim_strsave(e); + profile_fname = expand_env_save_opt(e, true); do_profiling = PROF_YES; profile_set_wait(profile_zero()); set_vim_var_nr(VV_PROFILING, 1L); -- cgit