diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-20 00:07:56 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-20 00:09:52 -0400 |
commit | f528aeff6edc7a0a3d841050ca74603720313bcb (patch) | |
tree | 8220182bf7f1a93a1f217fbe6275564b5c4f2823 /src | |
parent | 1d2b7020087626ab6e8bd43a203f14f9d1cdd31a (diff) | |
download | rneovim-f528aeff6edc7a0a3d841050ca74603720313bcb.tar.gz rneovim-f528aeff6edc7a0a3d841050ca74603720313bcb.tar.bz2 rneovim-f528aeff6edc7a0a3d841050ca74603720313bcb.zip |
vim-patch:8.0.1487: test 14 fails
Problem: Test 14 fails.
Solution: Fix of-by-one error.
https://github.com/vim/vim/commit/8846ac5aedb568b9aae969f0ad2b9b1606522ca9
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index 2ecc8da09e..dac88941dd 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -571,7 +571,7 @@ int searchit( && pos->col < MAXCOL - 2) { // Watch out for the "col" being MAXCOL - 2, used in a closed fold. 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 = utfc_ptr2len(ptr + pos->col); |