forked from aniani/vim
patch 7.4.697
Problem: The filename used for ":profile" must be given literally. Solution: Expand "~" and environment variables. (Marco Hinz)
This commit is contained in:
@@ -1108,7 +1108,7 @@ ex_profile(eap)
|
|||||||
if (len == 5 && STRNCMP(eap->arg, "start", 5) == 0 && *e != NUL)
|
if (len == 5 && STRNCMP(eap->arg, "start", 5) == 0 && *e != NUL)
|
||||||
{
|
{
|
||||||
vim_free(profile_fname);
|
vim_free(profile_fname);
|
||||||
profile_fname = vim_strsave(e);
|
profile_fname = expand_env_save_opt(e, TRUE);
|
||||||
do_profiling = PROF_YES;
|
do_profiling = PROF_YES;
|
||||||
profile_zero(&prof_wait_time);
|
profile_zero(&prof_wait_time);
|
||||||
set_vim_var_nr(VV_PROFILING, 1L);
|
set_vim_var_nr(VV_PROFILING, 1L);
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
697,
|
||||||
/**/
|
/**/
|
||||||
696,
|
696,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user