Patch 7.1.229
Problem:    A fold is closed when it shouldn't when 'foldmethod' is "indent"
            and backspacing a non-white character so that the indent increases.
Solution:   Keep the fold open after backspacing a character.
Files:      src/edit.c


*** ../vim-7.1.228/src/edit.c   Sat Jan 12 18:13:05 2008
--- src/edit.c  Mon Jan 14 20:06:43 2008
***************
*** 8618,8623 ****
--- 8619,8632 ----
      if (vim_strchr(p_cpo, CPO_BACKSPACE) != NULL && dollar_vcol == 0)
        dollar_vcol = curwin->w_virtcol;
  
+ #ifdef FEAT_FOLDING
+     /* When deleting a char the cursor line must never be in a closed fold.
+      * E.g., when 'foldmethod' is indent and deleting the first non-white
+      * char before a Tab. */
+     if (did_backspace)
+       foldOpenCursor();
+ #endif
+ 
      return did_backspace;
  }
  
*** ../vim-7.1.228/src/version.c        Sun Jan 13 21:57:25 2008
--- src/version.c       Mon Jan 14 20:08:35 2008
***************
*** 668,669 ****
--- 668,671 ----
  {   /* Add new patch number below this line */
+ /**/
+     229,
  /**/

-- 
ROBIN:  (warily) And if you get a question wrong?
ARTHUR: You are cast into the Gorge of Eternal Peril.
ROBIN:  Oh ... wacho!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui