updated for version 7.0-158
diff --git a/src/edit.c b/src/edit.c
index e117bed..dacbef5 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -9204,6 +9204,10 @@
 #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);
 }
diff --git a/src/version.c b/src/version.c
index 82d0b88..772e19c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    158,
+/**/
     157,
 /**/
     156,