Alexey Radkov wrote:

> A new version: next_search_hl_pos() moved into next_search_hl().
> A number of fixes added.
> Docs were added too, here is an excerpt:
> 
> matchaddpos({group}, {pos}[, {priority}[, {id}]])        *matchaddpos()*
>         Same as |matchadd()|, but requires a list of positions {pos}
>         instead of a pattern. This command is faster than |matchadd()|
>         because it does not require to handle regular expressions and
>         sets buffer line boundaries to redraw screen. It is supposed
>         to be used when fast match additions and deletions are
>         required, for example to highlight matching parentheses.
> 
>         The list {pos} accepts sublists: positions like [23, 24] or
>         plain numbers like 34. In the first case the 24th character in
>         line 23 will be highlighted; in the second case the whole line
>         34 will be highlighted. Maximum number of positions is 8.
> 
>         Example: >
>             :highlight MyGroup ctermbg=green guibg=green
>             :let m = matchaddpos("MyGroup", [[23, 24], 34])
> <        Deletion of the pattern: >
>             :call matchdelete(m)

I would suggest a third argument: the number of columns to highlight.
So it's [lnum, col, length].  When length is missing highlight one
screen cell, when col is missing highlight the whole line. I think
that's flexible enough.

> Still no tests, will add them soon.

OK, I will wait for that.


-- 
hundred-and-one symptoms of being an internet addict:
251. You've never seen your closest friends who usually live WAY too far away.

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

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