Karsten Hopp d4764e
To: vim-dev@vim.org
Karsten Hopp d4764e
Subject: Patch 7.2.067
Karsten Hopp d4764e
Fcc: outbox
Karsten Hopp d4764e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d4764e
Mime-Version: 1.0
Karsten Hopp d4764e
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp d4764e
Content-Transfer-Encoding: 8bit
Karsten Hopp d4764e
------------
Karsten Hopp d4764e
Karsten Hopp d4764e
Patch 7.2.067
Karsten Hopp d4764e
Problem:    Session file can't load extra file when the path contains special
Karsten Hopp d4764e
	    characters.
Karsten Hopp d4764e
Solution:   Escape the file name. (Lech Lorens)
Karsten Hopp d4764e
Files:	    src/ex_docmd.c
Karsten Hopp d4764e
Karsten Hopp d4764e
Karsten Hopp d4764e
*** ../vim-7.2.066/src/ex_docmd.c	Fri Nov 28 21:26:50 2008
Karsten Hopp d4764e
--- src/ex_docmd.c	Fri Dec  5 21:34:11 2008
Karsten Hopp d4764e
***************
Karsten Hopp d4764e
*** 10106,10112 ****
Karsten Hopp d4764e
       */
Karsten Hopp d4764e
      if (put_line(fd, "let s:sx = expand(\"<sfile>:p:r\").\"x.vim\"") == FAIL
Karsten Hopp d4764e
  	    || put_line(fd, "if file_readable(s:sx)") == FAIL
Karsten Hopp d4764e
! 	    || put_line(fd, "  exe \"source \" . s:sx") == FAIL
Karsten Hopp d4764e
  	    || put_line(fd, "endif") == FAIL)
Karsten Hopp d4764e
  	return FAIL;
Karsten Hopp d4764e
  
Karsten Hopp d4764e
--- 10106,10112 ----
Karsten Hopp d4764e
       */
Karsten Hopp d4764e
      if (put_line(fd, "let s:sx = expand(\"<sfile>:p:r\").\"x.vim\"") == FAIL
Karsten Hopp d4764e
  	    || put_line(fd, "if file_readable(s:sx)") == FAIL
Karsten Hopp d4764e
! 	    || put_line(fd, "  exe \"source \" . fnameescape(s:sx)") == FAIL
Karsten Hopp d4764e
  	    || put_line(fd, "endif") == FAIL)
Karsten Hopp d4764e
  	return FAIL;
Karsten Hopp d4764e
  
Karsten Hopp d4764e
*** ../vim-7.2.066/src/version.c	Tue Dec  9 10:56:50 2008
Karsten Hopp d4764e
--- src/version.c	Tue Dec  9 11:16:27 2008
Karsten Hopp d4764e
***************
Karsten Hopp d4764e
*** 678,679 ****
Karsten Hopp d4764e
--- 678,681 ----
Karsten Hopp d4764e
  {   /* Add new patch number below this line */
Karsten Hopp d4764e
+ /**/
Karsten Hopp d4764e
+     67,
Karsten Hopp d4764e
  /**/
Karsten Hopp d4764e
Karsten Hopp d4764e
-- 
Karsten Hopp d4764e
Life is a gift, living is an art.		(Bram Moolenaar)
Karsten Hopp d4764e
Karsten Hopp d4764e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d4764e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d4764e
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp d4764e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///