summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index e117bedf..dacbef57 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -9204,6 +9204,10 @@ ins_eol(c)
#ifdef FEAT_CINDENT
can_cindent = TRUE;
#endif
+#ifdef FEAT_FOLDING
+ /* When inserting a line the cursor line must never be in a closed fold. */
+ foldOpenCursor();
+#endif
return (!i);
}