home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.3 / 6.3.064 < prev    next >
Encoding:
Internet Message Format  |  2005-03-10  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.3.064
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.3.064
  11. Problem:    line2byte(line("$") + 1) sometimes returns the wrong number.
  12.         (Charles Campbell)
  13. Solution:   Flush the cached line before counting the bytes.
  14. Files:        src/memline.c
  15.  
  16.  
  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
  19. ***************
  20. *** 4247,4252 ****
  21. --- 4247,4255 ----
  22.       int        ffdos = (get_fileformat(buf) == EOL_DOS);
  23.       int        extra = 0;
  24.   
  25. +     /* take care of cached line first */
  26. +     ml_flush_line(curbuf);
  27.       if (buf->b_ml.ml_usedchunks == -1
  28.           || buf->b_ml.ml_chunksize == NULL
  29.           || line < 0)
  30. *** ../vim-6.3.041/src/version.c    Fri Mar 11 19:14:17 2005
  31. --- src/version.c    Fri Mar 11 19:15:46 2005
  32. ***************
  33. *** 643,644 ****
  34. --- 643,646 ----
  35.   {   /* Add new patch number below this line */
  36. + /**/
  37. +     64,
  38.   /**/
  39.  
  40. -- 
  41. FATHER:    You killed eight wedding guests in all!
  42. LAUNCELOT: Er, Well ... the thing is ... I thought your son was a lady.
  43. FATHER:    I can understand that.
  44.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  45.  
  46.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  47. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  48. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  49.  \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
  50.