diff src/ops.c @ 5182:4cbff53717d4 v7.4a.017

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)
author Bram Moolenaar <bram@vim.org>
date Sat, 13 Jul 2013 16:34:32 +0200
parents 18b43970fb7a
children 8c6615a30951
line wrap: on
line diff
--- 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)