4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When using ":e ++ff=dos fname" and the file contains a NL without
12 a CR before it and 'ffs' contains "unix" then the fileformat
14 Solution: Ignore 'ffs' when using the ++ff argument. (Ben Schmidt)
15 Also remove unreachable code.
19 *** ../vim-7.2.039/src/fileio.c Tue Nov 11 21:55:29 2008
20 --- src/fileio.c Wed Nov 12 13:19:42 2008
26 if (eap != NULL && eap->force_ff != 0)
28 fileformat = get_fileformat_force(curbuf, eap);
29 + try_unix = try_dos = try_mac = FALSE;
31 else if (curbuf->b_p_bin)
32 fileformat = EOL_UNIX; /* binary: use Unix format */
33 else if (*p_ffs == NUL)
36 STRCAT(IObuff, _("[CR missing]"));
39 - if (ff_error == EOL_MAC)
41 - STRCAT(IObuff, _("[NL found]"));
46 STRCAT(IObuff, _("[long lines split]"));
48 *** ../vim-7.2.039/src/version.c Wed Nov 12 15:28:37 2008
49 --- src/version.c Wed Nov 12 16:03:44 2008
53 { /* Add new patch number below this line */
59 If you're sending someone Styrofoam, what do you pack it in?
61 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
62 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
63 \\\ download, build and distribute -- http://www.A-A-P.org ///
64 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///