Skip to content

Commit c8b6bc7

Browse files
committed
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)
1 parent 119887b commit c8b6bc7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/ops.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ op_shift(oap, curs_top, amount)
267267
}
268268

269269
changed_lines(oap->start.lnum, 0, oap->end.lnum + 1, 0L);
270+
#ifdef FEAT_FOLDING
271+
/* The cursor line is not in a closed fold */
272+
foldOpenCursor();
273+
#endif
270274

271275
#ifdef FEAT_VISUAL
272276
if (oap->block_mode)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ static char *(features[]) =
727727

728728
static int included_patches[] =
729729
{ /* Add new patch number below this line */
730+
/**/
731+
17,
730732
/**/
731733
16,
732734
/**/

0 commit comments

Comments
 (0)