4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When doing "vim - < file" lines are broken at NUL chars.
13 Solution: Change NL characters back to NUL when reading from the temp
18 *** ../vim-6.2.149/src/fileio.c Sun Nov 9 20:20:26 2003
19 --- src/fileio.c Mon Nov 10 10:14:19 2003
40 if ((int)tlen + n + 1 > size)
42 ! /* Filled up to "size", append partial line. */
44 ! mch_memmove(ptr + tlen, p, (size_t)n);
50 ! /* Append whole line and new-line. */
51 ! mch_memmove(ptr + tlen, p, (size_t)n);
55 if (++read_buf_lnum > from)
58 if ((int)tlen + n + 1 > size)
60 ! /* Filled up to "size", append partial line.
61 ! * Change NL to NUL to reverse the effect done
64 ! for (ni = 0; ni < n; ++ni)
69 ! ptr[tlen++] = p[ni];
76 ! /* Append whole line and new-line. Change NL
77 ! * to NUL to reverse the effect done below. */
78 ! for (ni = 0; ni < n; ++ni)
83 ! ptr[tlen++] = p[ni];
87 if (++read_buf_lnum > from)
88 *** ../vim-6.2.149/src/version.c Sun Nov 9 20:35:08 2003
89 --- src/version.c Wed Nov 12 20:38:53 2003
93 { /* Add new patch number below this line */
99 hundred-and-one symptoms of being an internet addict:
100 6. You refuse to go to a vacation spot with no electricity and no phone lines.
102 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
103 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
104 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
105 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///