Karsten Hopp a243df
To: vim-dev@vim.org
Karsten Hopp a243df
Subject: Patch 7.0.158
Karsten Hopp a243df
Fcc: outbox
Karsten Hopp a243df
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a243df
Mime-Version: 1.0
Karsten Hopp a243df
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp a243df
Content-Transfer-Encoding: 8bit
Karsten Hopp a243df
------------
Karsten Hopp a243df
Karsten Hopp a243df
Patch 7.0.158
Karsten Hopp a243df
Problem:    In a C file with ":set foldmethod=syntax", typing {<CR> on the
Karsten Hopp a243df
            last line results in the cursor being in a closed fold. (Gautam
Karsten Hopp a243df
            Iyer)
Karsten Hopp a243df
Solution:   Open fold after inserting a new line.
Karsten Hopp a243df
Files:      src/edit.c
Karsten Hopp a243df
Karsten Hopp a243df
Karsten Hopp a243df
*** ../vim-7.0.157/src/edit.c	Tue Oct 17 13:39:36 2006
Karsten Hopp a243df
--- src/edit.c	Wed Nov  1 21:17:19 2006
Karsten Hopp a243df
***************
Karsten Hopp a243df
*** 9204,9209 ****
Karsten Hopp a243df
--- 9204,9213 ----
Karsten Hopp a243df
  #ifdef FEAT_CINDENT
Karsten Hopp a243df
      can_cindent = TRUE;
Karsten Hopp a243df
  #endif
Karsten Hopp a243df
+ #ifdef FEAT_FOLDING
Karsten Hopp a243df
+     /* When inserting a line the cursor line must never be in a closed fold. */
Karsten Hopp a243df
+     foldOpenCursor();
Karsten Hopp a243df
+ #endif
Karsten Hopp a243df
  
Karsten Hopp a243df
      return (!i);
Karsten Hopp a243df
  }
Karsten Hopp a243df
*** ../vim-7.0.157/src/version.c	Wed Nov  1 18:33:43 2006
Karsten Hopp a243df
--- src/version.c	Wed Nov  1 21:21:22 2006
Karsten Hopp a243df
***************
Karsten Hopp a243df
*** 668,669 ****
Karsten Hopp a243df
--- 668,671 ----
Karsten Hopp a243df
  {   /* Add new patch number below this line */
Karsten Hopp a243df
+ /**/
Karsten Hopp a243df
+     158,
Karsten Hopp a243df
  /**/
Karsten Hopp a243df
Karsten Hopp a243df
-- 
Karsten Hopp a243df
hundred-and-one symptoms of being an internet addict:
Karsten Hopp a243df
142. You dream about creating the world's greatest web site.
Karsten Hopp a243df
Karsten Hopp a243df
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a243df
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a243df
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp a243df
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///