Christian Brabandt wrote:
> >> But anyway, this raises the question again, why matchaddpos()
> >> accepts a list of positions (but only 8 items), while all other
> >> functions usually only accept 1 position.
> >
> > It's used for the matchparen plugin. The idea is that it's useful for
> > other plugins as well.
>
> Yes, but for consistency with the other match() functions and the VimL
> API it might still be a good idea to only accept a single position per
> matchaddpos() call. It shouldn't be too hard, to adjust the matchparen
> plugin to call matchaddpos() twice, right?
It would require another way to deal with IDs. Or allow for adding
another match with the same ID.
--
How To Keep A Healthy Level Of Insanity:
15. Five days in advance, tell your friends you can't attend their
party because you're not in the mood.
/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment