home *** CD-ROM | disk | FTP | other *** search
- To: vim-dev@vim.org
- Subject: Patch 6.1.078
- Fcc: outbox
- From: Bram Moolenaar <Bram@moolenaar.net>
- MIME-Version: 1.0
- Content-Type: text/plain; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- ------------
-
- Patch 6.1.078
- Problem: When using 'foldmethod' "marker" and the end marker appears before
- the start marker in the file, no fold is found. (Nazri Ramliy)
- Solution: Don't let the fold depth go negative.
- Files: src/fold.c
-
-
- *** ../vim61.077/src/fold.c Mon Feb 4 17:19:15 2002
- --- src/fold.c Mon May 13 19:36:46 2002
- ***************
- *** 2995,3000 ****
- --- 2995,3004 ----
- else
- ++s;
- }
- +
- + /* The level can't go negative, must be missing a start marker. */
- + if (flp->lvl_next < 0)
- + flp->lvl_next = 0;
- }
-
- /* foldlevelSyntax() {{{2 */
- *** ../vim61.077/src/version.c Sun May 19 11:56:55 2002
- --- src/version.c Sun May 19 12:39:08 2002
- ***************
- *** 608,609 ****
- --- 608,611 ----
- { /* Add new patch number below this line */
- + /**/
- + 78,
- /**/
-
- --
- "You know, it's at times like this when I'm trapped in a Vogon airlock with
- a man from Betelgeuse and about to die of asphyxiation in deep space that I
- really wish I'd listened to what my mother told me when I was young!"
- "Why, what did she tell you?"
- "I don't know, I didn't listen!"
- -- Arthur Dent and Ford Prefect in Douglas Adams'
- "The Hitchhiker's Guide to the Galaxy"
-
- /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\
- /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
- \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
- \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
-