]> granicus.if.org Git - vim/commitdiff
updated for version 7.4a.017 v7.4a.017
authorBram Moolenaar <Bram@vim.org>
Sat, 13 Jul 2013 14:34:32 +0000 (16:34 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 Jul 2013 14:34:32 +0000 (16:34 +0200)
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)

src/ops.c
src/version.c

index ab3d636cdc6f3d44029da17bd7c939762801dece..0eb5903418dfef5925700856dbd6fb5032d1a468 100644 (file)
--- 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)
index c856835e70da100a9a674d1688bb18e39abc2750..67230f5dadbdd75e4cddf9114431ebd19c4a53be 100644 (file)
@@ -727,6 +727,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    17,
 /**/
     16,
 /**/