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 @@ -681,6 +681,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 340, /**/ 339, /**/