diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2015-04-10 13:05:57 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-04-11 19:22:49 -0400 |
commit | e4975f82c9704aa5d52e18e578a449268654ee37 (patch) | |
tree | f7dbefa5ec8a906db6ebf7721dc2ea90d2f7e642 /src | |
parent | 5b390395e6cfd18ce3eb5ae318051c835778adb2 (diff) | |
download | rneovim-e4975f82c9704aa5d52e18e578a449268654ee37.tar.gz rneovim-e4975f82c9704aa5d52e18e578a449268654ee37.tar.bz2 rneovim-e4975f82c9704aa5d52e18e578a449268654ee37.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |