From: Bram Moolenaar Date: Mon, 14 Jan 2008 19:12:28 +0000 (+0000) Subject: updated for version 7.1-229 X-Git-Tag: v7.1.229 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce3be4756a6e5228808b81fe694b518a12ce1e51;p=vim updated for version 7.1-229 --- diff --git a/src/edit.c b/src/edit.c index 60fd65256..4edd0bc0a 100644 --- a/src/edit.c +++ b/src/edit.c @@ -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; } diff --git a/src/version.c b/src/version.c index 81265916d..aea902577 100644 --- a/src/version.c +++ b/src/version.c @@ -666,6 +666,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 229, /**/ 228, /**/