Karsten Hopp 15e452
To: vim-dev@vim.org
Karsten Hopp 15e452
Subject: Patch 7.1.314
Karsten Hopp 15e452
Fcc: outbox
Karsten Hopp 15e452
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 15e452
Mime-Version: 1.0
Karsten Hopp 15e452
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 15e452
Content-Transfer-Encoding: 8bit
Karsten Hopp 15e452
------------
Karsten Hopp 15e452
Karsten Hopp 15e452
Patch 7.1.314
Karsten Hopp 15e452
Problem:    The value of 'pastetoggle' is written to the session file without
Karsten Hopp 15e452
	    any escaping. (Randall Hansen)
Karsten Hopp 15e452
Solution:   Use put_escstr(). (Ben Schmidt)
Karsten Hopp 15e452
Files:	    src/option.c
Karsten Hopp 15e452
Karsten Hopp 15e452
Karsten Hopp 15e452
*** ../vim-7.1.313/src/option.c	Wed Mar 12 17:37:53 2008
Karsten Hopp 15e452
--- src/option.c	Wed Jun  4 19:32:02 2008
Karsten Hopp 15e452
***************
Karsten Hopp 15e452
*** 243,249 ****
Karsten Hopp 15e452
  /* WV_ and BV_ values get typecasted to this for the "indir" field */
Karsten Hopp 15e452
  typedef enum
Karsten Hopp 15e452
  {
Karsten Hopp 15e452
!     PV_NONE = 0
Karsten Hopp 15e452
  } idopt_T;
Karsten Hopp 15e452
  
Karsten Hopp 15e452
  /*
Karsten Hopp 15e452
--- 243,250 ----
Karsten Hopp 15e452
  /* WV_ and BV_ values get typecasted to this for the "indir" field */
Karsten Hopp 15e452
  typedef enum
Karsten Hopp 15e452
  {
Karsten Hopp 15e452
!     PV_NONE = 0,
Karsten Hopp 15e452
!     PV_MAXVAL = 0xffff    /* to avoid warnings for value out of range */
Karsten Hopp 15e452
  } idopt_T;
Karsten Hopp 15e452
  
Karsten Hopp 15e452
  /*
Karsten Hopp 15e452
***************
Karsten Hopp 15e452
*** 8713,8719 ****
Karsten Hopp 15e452
  	{
Karsten Hopp 15e452
  	    s = *valuep;
Karsten Hopp 15e452
  	    while (*s != NUL)
Karsten Hopp 15e452
! 		if (fputs((char *)str2special(&s, FALSE), fd) < 0)
Karsten Hopp 15e452
  		    return FAIL;
Karsten Hopp 15e452
  	}
Karsten Hopp 15e452
  	else if (expand)
Karsten Hopp 15e452
--- 8714,8720 ----
Karsten Hopp 15e452
  	{
Karsten Hopp 15e452
  	    s = *valuep;
Karsten Hopp 15e452
  	    while (*s != NUL)
Karsten Hopp 15e452
! 		if (put_escstr(fd, str2special(&s, FALSE), 2) == FAIL)
Karsten Hopp 15e452
  		    return FAIL;
Karsten Hopp 15e452
  	}
Karsten Hopp 15e452
  	else if (expand)
Karsten Hopp 15e452
*** ../vim-7.1.313/src/version.c	Mon Jun  9 15:10:07 2008
Karsten Hopp 15e452
--- src/version.c	Mon Jun  9 17:05:40 2008
Karsten Hopp 15e452
***************
Karsten Hopp 15e452
*** 668,669 ****
Karsten Hopp 15e452
--- 673,676 ----
Karsten Hopp 15e452
  {   /* Add new patch number below this line */
Karsten Hopp 15e452
+ /**/
Karsten Hopp 15e452
+     314,
Karsten Hopp 15e452
  /**/
Karsten Hopp 15e452
Karsten Hopp 15e452
-- 
Karsten Hopp 15e452
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 15e452
26. You check your mail. It says "no new messages." So you check it again.
Karsten Hopp 15e452
Karsten Hopp 15e452
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 15e452
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 15e452
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 15e452
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///