# HG changeset patch # User Bram Moolenaar # Date 1373726072 -7200 # Node ID 4cbff53717d4920cb64d417c7a603b45519138f1 # Parent c6eacd29d598dc4170128b728865e8f896965a3a updated for version 7.4a.017 Problem: When 'foldmethod' is "indent", using ">>" on a line just above a fold makes the cursor line folded. (Evan Laforge) Solution: Call foldOpenCursor(). (Christian Brabandt) diff --git a/src/ops.c b/src/ops.c --- a/src/ops.c +++ b/src/ops.c @@ -267,6 +267,10 @@ op_shift(oap, curs_top, amount) } changed_lines(oap->start.lnum, 0, oap->end.lnum + 1, 0L); +#ifdef FEAT_FOLDING + /* The cursor line is not in a closed fold */ + foldOpenCursor(); +#endif #ifdef FEAT_VISUAL if (oap->block_mode) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 17, +/**/ 16, /**/ 15,