On 2 July 2014, Bram Moolenaar <[email protected]> wrote:
> 
> Lcd wrote:
> 
> > On 1 July 2014, Christian Brabandt <[email protected]> wrote:
> > [...]
> > > BTW: what happens to the highlighting after one changes the
> > > buffer? E.g. if I add a matchaddpos() at line 5, column 5 and
> > > afterwards add a line below 3, will then line 6, column 5 be
> > > highlighted or line 5? Both could be useful, I suppose...
> >
> >     As it is now, the highlight stays at line 5, column 5.  I think
> > there was a recent patch to make it move along with the text it
> > highlights (which would be a lot more useful, IMO).
>
> No, the position is fixed.
>
> I'm not sure how useful it is to adjust the positions for
> inserted/deleted lines.
[...]

    Still, leaving phantom highlights behind is annoying, and definitely
not useful.  Can we at least have an option to remove the highlight when
it becomes invalid?  This situation is a pain to detect in a script, and
it should be much easier to deal with at the source.

    /lcd

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui