Dominique Pelle wrote:

> I see this bug with concealed links in help pages.
> 
> 1) Start vim with:
> 
> $ vim -u NONE -N -c 'help :browse' -c 'syntax on' \
>     -c 'set conceallevel=3' -c 'norm 4j55|'
> 
> (cursor is on the letter p of the  :sp  command in editing.txt,
> at line 1175 and the | characters in links are concealed)
> 
> 2) Press  CTRL-]
> 
> Observe that Vim jumps to the help section of the  :saveas
> command (BUG!).  Expected behavior is to jump to the help
> of the :sp  command which was the tag under the cursor.
> 
> Without conceal, cursor at column 55 would be on the
> :saveas  command.  But with concealed, cursor end up
> on :sp  command.
> 
> I'm using Vim-7.3b (2346:9228765d3e13).

The change I just pushed fixes this by never hiding items in the cursor
line.

Doing this otherwise, adjusting the cursor position and everything
related to it to what is being displayed, will be very difficult.
And slow, because it requires parsing the text to get the syntax
attributes.

-- 
MARTHA'S WAY: Don't throw out all that leftover wine. Freeze into ice cubes
              for future use in casseroles and sauces.
MY WAY:       What leftover wine?

 /// Bram Moolenaar -- [email protected] -- 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

Raspunde prin e-mail lui