Skip to content

Commit 8846ac5

Browse files
committed
patch 8.0.1487: test 14 fails
Problem: Test 14 fails. Solution: Fix of-by-one error.
1 parent 82846a0 commit 8846ac5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/search.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ searchit(
685685
&& pos->col < MAXCOL - 2)
686686
{
687687
ptr = ml_get_buf(buf, pos->lnum, FALSE);
688-
if ((int)STRLEN(ptr) < pos->col)
688+
if ((int)STRLEN(ptr) <= pos->col)
689689
start_char_len = 1;
690690
else
691691
start_char_len = (*mb_ptr2len)(ptr + pos->col);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1487,
774776
/**/
775777
1486,
776778
/**/

0 commit comments

Comments
 (0)