On Jun 14, 7:35 pm, Bram Moolenaar <[email protected]> wrote:
>
> > Line of text:
> > ---------------------------------------------------------------------------------
> > This is a line of text. [abcd]The characters between brackets are
> > concealed.
> > ---------------------------------------------------------------------------------
>
> > In the above line of text if I click on the 'b' in between the cursor
> > is placed on the 'a' or 'c' in 'characters, instead of on the 'b' that
> > I click on. What seems to be happening is that if I click on the x'th
> > visible column, placement of the cursor is placed x chars from the
> > beginning of the line, with both visible and concealed characters
> > included in the count. So the mouseclick will always place the cursor
> > on the line somewhere left of the actual click when concealed chars
> > are located left of the clicked column.
>
> > Am I misunderstanding something here? Is this a known behavior?
>
> 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 the word 'brackets' and the cursor will appear 6
chars to the left of where you click. The problem happens with both
'conceal' areas and 'concealends' areas.
-- Herb
--
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