summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-09 19:24:01 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-09 19:24:01 +0100
commit8846ac5aedb568b9aae969f0ad2b9b1606522ca9 (patch)
tree954a97afa9b9c3550c64272814cd042e0311f38b
parent82846a00ac0c135946c93c48c1657018a5c96b11 (diff)
downloadvim-git-8846ac5aedb568b9aae969f0ad2b9b1606522ca9.tar.gz
patch 8.0.1487: test 14 failsv8.0.1487
Problem: Test 14 fails. Solution: Fix of-by-one error.
-rw-r--r--src/search.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index 8089dcf36..7f019ed70 100644
--- a/src/search.c
+++ b/src/search.c
@@ -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);
diff --git a/src/version.c b/src/version.c
index d3927cbd0..043cc623f 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1487,
+/**/
1486,
/**/
1485,