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.1.078 < prev    next >
Encoding:
Internet Message Format  |  2002-05-18  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.078
  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.1.078
  11. Problem:    When using 'foldmethod' "marker" and the end marker appears before
  12.         the start marker in the file, no fold is found. (Nazri Ramliy)
  13. Solution:   Don't let the fold depth go negative.
  14. Files:        src/fold.c
  15.  
  16.  
  17. *** ../vim61.077/src/fold.c    Mon Feb  4 17:19:15 2002
  18. --- src/fold.c    Mon May 13 19:36:46 2002
  19. ***************
  20. *** 2995,3000 ****
  21. --- 2995,3004 ----
  22.       else
  23.           ++s;
  24.       }
  25. +     /* The level can't go negative, must be missing a start marker. */
  26. +     if (flp->lvl_next < 0)
  27. +     flp->lvl_next = 0;
  28.   }
  29.   
  30.   /* foldlevelSyntax() {{{2 */
  31. *** ../vim61.077/src/version.c    Sun May 19 11:56:55 2002
  32. --- src/version.c    Sun May 19 12:39:08 2002
  33. ***************
  34. *** 608,609 ****
  35. --- 608,611 ----
  36.   {   /* Add new patch number below this line */
  37. + /**/
  38. +     78,
  39.   /**/
  40.  
  41. -- 
  42. "You know, it's at times like this when I'm trapped in a Vogon airlock with
  43. a man from Betelgeuse and about to die of asphyxiation in deep space that I
  44. really wish I'd listened to what my mother told me when I was young!"
  45. "Why, what did she tell you?"
  46. "I don't know, I didn't listen!"
  47.         -- Arthur Dent and Ford Prefect in Douglas Adams'
  48.            "The Hitchhiker's Guide to the Galaxy"
  49.  
  50.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  51. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  52. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  53.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  54.