4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: line2byte(line("$") + 1) sometimes returns the wrong number.
13 Solution: Flush the cached line before counting the bytes.
17 *** ../vim-6.3.041/src/memline.c Wed Jun 9 14:56:26 2004
18 --- src/memline.c Thu Feb 17 11:02:53 2005
22 int ffdos = (get_fileformat(buf) == EOL_DOS);
25 + /* take care of cached line first */
26 + ml_flush_line(curbuf);
28 if (buf->b_ml.ml_usedchunks == -1
29 || buf->b_ml.ml_chunksize == NULL
31 *** ../vim-6.3.041/src/version.c Fri Mar 11 19:14:17 2005
32 --- src/version.c Fri Mar 11 19:15:46 2005
36 { /* Add new patch number below this line */
42 FATHER: You killed eight wedding guests in all!
43 LAUNCELOT: Er, Well ... the thing is ... I thought your son was a lady.
44 FATHER: I can understand that.
45 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
47 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
48 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
49 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
50 \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///