summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-01-14 19:12:28 +0000
committerBram Moolenaar <Bram@vim.org>2008-01-14 19:12:28 +0000
commitce3be4756a6e5228808b81fe694b518a12ce1e51 (patch)
treebc304bba74fb646c833181569c072e7ddb47a8a5 /src/edit.c
parentef6fc097588705daee00051d5f7a583d42020d0c (diff)
downloadvim-git-ce3be4756a6e5228808b81fe694b518a12ce1e51.tar.gz
updated for version 7.1-229v7.1.229
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c8
1 files changed, 8 insertions, 0 deletions
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;
}