Hirohito Higashi wrote:
> This is a proposal.
>
> matchadd() and /\n can highlight end of line.
> Currently, matchaddpos() can do this too.
>
> I think, matchaddpos() should not do this.
> Because this function specified position directory by user, it should be only
> to highlight certain parts of the *character*.
>
>
> How to reproduce:
> - Naked Vim with some options.
> $ vim -Nu NONE -i NONE -c "syntax on" -c "set hls" -c "call setline(1,
> '12345')"
> - Highlight line:1,col:2 and line:1,col:6
> :echo matchaddpos('Error', [[1,2], [1,6]])
>
> The behavior I want:
> - Highlighted line:1,col:2, and not highlight line:1,col:6
>
> Actual behavior:
> - Highlighted both.
>
>
> I wrote a patch with a test.
> Please consider this proposal.
Hmm, I'm not sure. As you mention, it will be different from other
matches which do highlight the position just after the line.
Why not leave out the position in the argument of matchaddpos()?
--
Team-building exercises come in many forms but they all trace their roots back
to the prison system. In your typical team-building exercise the employees
are subjected to a variety of unpleasant situations until they become either a
cohesive team or a ring of car jackers.
(Scott Adams - The Dilbert principle)
/// 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.