Skip to content

Commit c90ac66

Browse files
brammooldouglaskayama
authored andcommitted
patch 7.4.697 Problem: The filename used for ":profile" must be given literally. Solution: Expand "~" and environment variables. (Marco Hinz)
1 parent aaa44bf commit c90ac66

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/ex_cmds2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ ex_profile(eap)
11081108
if (len == 5 && STRNCMP(eap->arg, "start", 5) == 0 && *e != NUL)
11091109
{
11101110
vim_free(profile_fname);
1111-
profile_fname = vim_strsave(e);
1111+
profile_fname = expand_env_save_opt(e, TRUE);
11121112
do_profiling = PROF_YES;
11131113
profile_zero(&prof_wait_time);
11141114
set_vim_var_nr(VV_PROFILING, 1L);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ static char *(features[]) =
756756

757757
static int included_patches[] =
758758
{ /* Add new patch number below this line */
759+
/**/
760+
697,
759761
/**/
760762
696,
761763
/**/

0 commit comments

Comments
 (0)