Hirohito Higashi wrote:

> 2016-10-15(Sat) 21:57:02 UTC+9 Bram Moolenaar:
> > Patch 8.0.0033
> > Problem:    Cannot use overlapping positions with matchaddpos().
> > Solution:   Check end of match. (Ozaki Kiichi) Add a test (Hirohito Higashi)
> > Files:      src/screen.c, src/testdir/test_match.vim
> 
> [...]
> 
> Regression occurred.
> When {pos} item specified a number (line number), this line is not 
> highlighted properly.
> 
> :call matchaddpos('Error', [[1]])
> 
> I made a pacth that contains a test.
> Please check this.

Thanks.  That code is quite confusing.  The function returns TRUE or
FALSE but the caller checks for 1 or 0.  I'll clean it up a bit.

Perhaps we need some more tests for this.

-- 
Any sufficiently advanced technology is indistinguishable from magic.
                                        Arthur C. Clarke
Any sufficiently advanced bug is indistinguishable from a feature.
                                        Rich Kulawiec

 /// Bram Moolenaar -- b...@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_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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui