Dominique Pellé wrote:

> Hi
>
> I notice a bug with conceal feature: the content of
> the fold column is not displayed correctly when using
> 'conceallevel' with a value >= 1.
>
> Steps to reproduce:
>
> 1) Enter this command:
>
> $ yes foo | head -10 | \
>  vim --noplugin -u NONE \
>      -c 'set foldcolumn=4 conceallevel=1' \
>      -c ':3,6fold' \
>      -c 'norm zR' -
>
> 2) press  j  in normal mode a couple of times to
> move cursor down and observe that when cursor
> goes inside the open fold, information in the
> fold column becomes blank. Pressing CTRL-L to
> redraw works around the bug.

Thinking about it further, this second attached patch
also fixes the fold column redraw bug with less redraws
than patch in previous email.

However, unlike previous patch, it does not fix the
redraw glitches with moving commands )  ]] CTRL-F  (etc)
so they require specific fixes.

-- Dominique

-- 
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
diff -r 0e27866cea99 src/screen.c
--- a/src/screen.c	Tue Jun 08 23:17:01 2010 +0200
+++ b/src/screen.c	Thu Jun 10 21:37:41 2010 +0200
@@ -595,7 +595,7 @@
     int		j;
 
     if (lnum >= wp->w_topline && lnum < wp->w_botline
-					  && foldedCount(wp, lnum, NULL) == 0)
+					  && foldedCount(wp, lnum, &win_foldinfo) == 0)
     {
 # ifdef FEAT_GUI
 	/* Remove the cursor before starting to do anything, because scrolling

Raspunde prin e-mail lui