Christian Brabandt wrote: > On Di, 14 Jun 2011, hsitz wrote: > > > On Jun 14, 7:35 pm, Bram Moolenaar <[email protected]> wrote: > > > That's a bug. > > > > Thanks for confirming. I will move to vim-dev. Here are some steps > > to reproduce it. > > > > 1. Create a document with this line of text: > > This is text. [abcd] The text in brackets is concealed. > > > > 2. :syn match MyHiddenText conceal '\[.\{-1,}]' > > > > 3. :set conceallevel=3 > > > > 4. :set concealcursor=nc > > > > The brackets and text inside should now be invisible. Click with the > > mouse on the 'b' in 'brackets' and the cursor appears on the line 6 > > chars to the left of where you click. The problem happens with both > > 'conceal' areas and 'concealends' areas. > > Attached patch fixes it.
I had a look at the patch now. It will only fix it for a very limited number of situations. Not for the help files, which have 'cole' set to 2. I also suspect it's wrong for when there are double-width characters. I think this is the wrong place to compensate for conealed characters. I should probably be in places where RET_WIN_BUF_CHARTABSIZE() is used. Then it will also fix the problem that "k" and "j" don't stick to the visual column. -- hundred-and-one symptoms of being an internet addict: 192. Your boss asks you to "go fer" coffee and you come up with 235 FTP sites. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.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
