]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-229 v7.1.229
authorBram Moolenaar <Bram@vim.org>
Mon, 14 Jan 2008 19:12:28 +0000 (19:12 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 14 Jan 2008 19:12:28 +0000 (19:12 +0000)
src/edit.c
src/version.c

index 60fd65256b4c1387784e86b36fa354ef918b277f..4edd0bc0a4f54a2c922301b8d14610aa7f2cf619 100644 (file)
@@ -8618,6 +8618,14 @@ ins_bs(c, mode, inserted_space_p)
     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;
 }
 
index 81265916ddcb2824ea9b8e9bb001b1e4c71b6e18..aea902577e8fc87947b9644100439721a20cf5b0 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    229,
 /**/
     228,
 /**/