Dominique Pelle 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. > > Now if you do the same with the slightly different > command... > > $ yes foo | head -10 | \ > vim --noplugin -u NONE \ > -c 'set foldcolumn=4 conceallevel=1' \ > -c ':3,$fold' \ > -c 'norm zR' - > > You'll notice that when pressing j the foldcolumn is > not deleted but it gets filled with '|' even where there > is no fold. > > Bug does not happen when setting 'relativenumber' or > 'cursorline'. > > Attached patch fixes it. However, I think it may not > be the optimal solution (more redraws than strictly > necessary?). > > The same patch also happen to fix several other redraw > issues with conceal items not properly updated when > using the following motion commands in normal mode... > > ) > ]] > <PageUp> > <PageDown> > CTRL-F > CTRL-B > CTRL-U > CTRL-E (when cursor is on the top line, causing scrolling) > CTRL-Y (when cursor is on the bottom line, causing scrolling) > CTRL-O > CTRL-I > [count]go > [count]g; > > and it also fixes conceal item redraw issues with following Ex command: > > :[range] > :go [count]
Thanks. Perhaps Vince knows how to fix this more efficiently? -- hundred-and-one symptoms of being an internet addict: 184. You no longer ask prospective dates what their sign is, instead your line is "Hi, what's your URL?" /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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