diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-09 19:24:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-09 19:24:01 +0100 |
commit | 8846ac5aedb568b9aae969f0ad2b9b1606522ca9 (patch) | |
tree | 954a97afa9b9c3550c64272814cd042e0311f38b /src | |
parent | 82846a00ac0c135946c93c48c1657018a5c96b11 (diff) |
patch 8.0.1487: test 14 failsv8.0.1487
Problem: Test 14 fails.
Solution: Fix of-by-one error.
Diffstat (limited to 'src')
-rw-r--r-- | src/search.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c index 8089dcf369..7f019ed702 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 d3927cbd0b..043cc623ff 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, |