Bram,
attached patch fixes this issue from the todo list:

,----
| When 'foldmethod' is "indent", using >> on a line just above a fold
| makes the cursor line folded. (Evan Laforge, 2009 Oct 17)
`----
                                               

regards,
Christian
-- 
Nach 10 Uhr müssen alle Kinder ins Bett, nach 70 alle Menschen.
                -- Gerhard Kocher

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


diff --git a/src/ops.c b/src/ops.c
--- a/src/ops.c
+++ b/src/ops.c
@@ -267,6 +267,10 @@
     }
 
     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)

Raspunde prin e-mail lui