summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fold.c4
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/fold.c b/src/fold.c
index 2898c01df..405a6ef1d 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -3239,8 +3239,8 @@ foldlevelMarker(flp)
flp->lvl = n;
flp->lvl_next = n - 1;
/* never start a fold with an end marker */
- if (flp->lvl_next > flp->lvl)
- flp->lvl_next = flp->lvl;
+ if (flp->lvl_next > start_lvl)
+ flp->lvl_next = start_lvl;
}
}
else
diff --git a/src/version.c b/src/version.c
index 5c7c50a5d..355549baa 100644
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 340,
+/**/
339,
/**/
338,