Karsten Hopp e698db
To: vim-dev@vim.org
Karsten Hopp e698db
Subject: Patch 7.2.040
Karsten Hopp e698db
Fcc: outbox
Karsten Hopp e698db
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e698db
Mime-Version: 1.0
Karsten Hopp e698db
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp e698db
Content-Transfer-Encoding: 8bit
Karsten Hopp e698db
------------
Karsten Hopp e698db
Karsten Hopp e698db
Patch 7.2.040
Karsten Hopp e698db
Problem:    When using ":e ++ff=dos fname" and the file contains a NL without
Karsten Hopp e698db
	    a CR before it and 'ffs' contains "unix" then the fileformat
Karsten Hopp e698db
	    becomes unix.
Karsten Hopp e698db
Solution:   Ignore 'ffs' when using the ++ff argument. (Ben Schmidt)
Karsten Hopp e698db
	    Also remove unreachable code.
Karsten Hopp e698db
Files:	    src/fileio.c
Karsten Hopp e698db
Karsten Hopp e698db
Karsten Hopp e698db
*** ../vim-7.2.039/src/fileio.c	Tue Nov 11 21:55:29 2008
Karsten Hopp e698db
--- src/fileio.c	Wed Nov 12 13:19:42 2008
Karsten Hopp e698db
***************
Karsten Hopp e698db
*** 932,938 ****
Karsten Hopp e698db
--- 932,941 ----
Karsten Hopp e698db
      else
Karsten Hopp e698db
      {
Karsten Hopp e698db
  	if (eap != NULL && eap->force_ff != 0)
Karsten Hopp e698db
+ 	{
Karsten Hopp e698db
  	    fileformat = get_fileformat_force(curbuf, eap);
Karsten Hopp e698db
+ 	    try_unix = try_dos = try_mac = FALSE;
Karsten Hopp e698db
+ 	}
Karsten Hopp e698db
  	else if (curbuf->b_p_bin)
Karsten Hopp e698db
  	    fileformat = EOL_UNIX;		/* binary: use Unix format */
Karsten Hopp e698db
  	else if (*p_ffs == NUL)
Karsten Hopp e698db
***************
Karsten Hopp e698db
*** 2341,2351 ****
Karsten Hopp e698db
  		STRCAT(IObuff, _("[CR missing]"));
Karsten Hopp e698db
  		c = TRUE;
Karsten Hopp e698db
  	    }
Karsten Hopp e698db
- 	    if (ff_error == EOL_MAC)
Karsten Hopp e698db
- 	    {
Karsten Hopp e698db
- 		STRCAT(IObuff, _("[NL found]"));
Karsten Hopp e698db
- 		c = TRUE;
Karsten Hopp e698db
- 	    }
Karsten Hopp e698db
  	    if (split)
Karsten Hopp e698db
  	    {
Karsten Hopp e698db
  		STRCAT(IObuff, _("[long lines split]"));
Karsten Hopp e698db
--- 2344,2349 ----
Karsten Hopp e698db
*** ../vim-7.2.039/src/version.c	Wed Nov 12 15:28:37 2008
Karsten Hopp e698db
--- src/version.c	Wed Nov 12 16:03:44 2008
Karsten Hopp e698db
***************
Karsten Hopp e698db
*** 678,679 ****
Karsten Hopp e698db
--- 678,681 ----
Karsten Hopp e698db
  {   /* Add new patch number below this line */
Karsten Hopp e698db
+ /**/
Karsten Hopp e698db
+     40,
Karsten Hopp e698db
  /**/
Karsten Hopp e698db
Karsten Hopp e698db
-- 
Karsten Hopp e698db
If you're sending someone Styrofoam, what do you pack it in?
Karsten Hopp e698db
Karsten Hopp e698db
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e698db
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e698db
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp e698db
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///