forked from aniani/vim
patch 8.0.1487: test 14 fails
Problem: Test 14 fails. Solution: Fix of-by-one error.
This commit is contained in:
@@ -685,7 +685,7 @@ searchit(
|
|||||||
&& pos->col < MAXCOL - 2)
|
&& pos->col < MAXCOL - 2)
|
||||||
{
|
{
|
||||||
ptr = ml_get_buf(buf, pos->lnum, FALSE);
|
ptr = ml_get_buf(buf, pos->lnum, FALSE);
|
||||||
if ((int)STRLEN(ptr) < pos->col)
|
if ((int)STRLEN(ptr) <= pos->col)
|
||||||
start_char_len = 1;
|
start_char_len = 1;
|
||||||
else
|
else
|
||||||
start_char_len = (*mb_ptr2len)(ptr + pos->col);
|
start_char_len = (*mb_ptr2len)(ptr + pos->col);
|
||||||
|
|||||||
@@ -771,6 +771,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1487,
|
||||||
/**/
|
/**/
|
||||||
1486,
|
1486,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user