Karsten Hopp af034f
To: vim_dev@googlegroups.com
Karsten Hopp af034f
Subject: Patch 7.4.697
Karsten Hopp af034f
Fcc: outbox
Karsten Hopp af034f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp af034f
Mime-Version: 1.0
Karsten Hopp af034f
Content-Type: text/plain; charset=UTF-8
Karsten Hopp af034f
Content-Transfer-Encoding: 8bit
Karsten Hopp af034f
------------
Karsten Hopp af034f
Karsten Hopp af034f
Patch 7.4.697
Karsten Hopp af034f
Problem:    The filename used for ":profile" must be given literally.
Karsten Hopp af034f
Solution:   Expand "~" and environment variables. (Marco Hinz)
Karsten Hopp af034f
Files:      src/ex_cmds2.c
Karsten Hopp af034f
Karsten Hopp af034f
Karsten Hopp af034f
*** ../vim-7.4.696/src/ex_cmds2.c	2015-02-27 20:33:27.448780691 +0100
Karsten Hopp af034f
--- src/ex_cmds2.c	2015-04-13 15:31:48.505997750 +0200
Karsten Hopp af034f
***************
Karsten Hopp af034f
*** 1108,1114 ****
Karsten Hopp af034f
      if (len == 5 && STRNCMP(eap->arg, "start", 5) == 0 && *e != NUL)
Karsten Hopp af034f
      {
Karsten Hopp af034f
  	vim_free(profile_fname);
Karsten Hopp af034f
! 	profile_fname = vim_strsave(e);
Karsten Hopp af034f
  	do_profiling = PROF_YES;
Karsten Hopp af034f
  	profile_zero(&prof_wait_time);
Karsten Hopp af034f
  	set_vim_var_nr(VV_PROFILING, 1L);
Karsten Hopp af034f
--- 1108,1114 ----
Karsten Hopp af034f
      if (len == 5 && STRNCMP(eap->arg, "start", 5) == 0 && *e != NUL)
Karsten Hopp af034f
      {
Karsten Hopp af034f
  	vim_free(profile_fname);
Karsten Hopp af034f
! 	profile_fname = expand_env_save_opt(e, TRUE);
Karsten Hopp af034f
  	do_profiling = PROF_YES;
Karsten Hopp af034f
  	profile_zero(&prof_wait_time);
Karsten Hopp af034f
  	set_vim_var_nr(VV_PROFILING, 1L);
Karsten Hopp af034f
*** ../vim-7.4.696/src/version.c	2015-04-13 15:28:00.108492965 +0200
Karsten Hopp af034f
--- src/version.c	2015-04-13 15:36:20.975024394 +0200
Karsten Hopp af034f
***************
Karsten Hopp af034f
*** 743,744 ****
Karsten Hopp af034f
--- 743,746 ----
Karsten Hopp af034f
  {   /* Add new patch number below this line */
Karsten Hopp af034f
+ /**/
Karsten Hopp af034f
+     697,
Karsten Hopp af034f
  /**/
Karsten Hopp af034f
Karsten Hopp af034f
-- 
Karsten Hopp af034f
I am always surprised in the Linux world how quickly solutions can be
Karsten Hopp af034f
obtained.  (Imagine sending an email to Bill Gates, asking why Windows
Karsten Hopp af034f
crashed, and how to fix it...  and then getting an answer that fixed the
Karsten Hopp af034f
problem... <0>_<0> !)		              -- Mark Langdon
Karsten Hopp af034f
Karsten Hopp af034f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp af034f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp af034f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp af034f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///