1
0
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:
Bram Moolenaar
2018-02-09 19:24:01 +01:00
parent 82846a00ac
commit 8846ac5aed
2 changed files with 3 additions and 1 deletions

View File

@@ -685,7 +685,7 @@ searchit(
&& pos->col < MAXCOL - 2)
{
ptr = ml_get_buf(buf, pos->lnum, FALSE);
if ((int)STRLEN(ptr) < pos->col)
if ((int)STRLEN(ptr) <= pos->col)
start_char_len = 1;
else
start_char_len = (*mb_ptr2len)(ptr + pos->col);

View File

@@ -771,6 +771,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1487,
/**/
1486,
/**/