diff options
author | shadmansaleh <shadmansaleh3@gmail.com> | 2021-04-20 22:44:13 +0600 |
---|---|---|
committer | shadmansaleh <shadmansaleh3@gmail.com> | 2021-05-09 06:37:02 +0600 |
commit | 973ecd8e90dda246f5f092c6e2e277d2ee488cfb (patch) | |
tree | 788048b363d1fcd243b69453ddb6fcccc8392a3c /src/nvim/search.c | |
parent | 5c404ad0fa55b8420579d283710333a82f716d6b (diff) | |
download | rneovim-973ecd8e90dda246f5f092c6e2e277d2ee488cfb.tar.gz rneovim-973ecd8e90dda246f5f092c6e2e277d2ee488cfb.tar.bz2 rneovim-973ecd8e90dda246f5f092c6e2e277d2ee488cfb.zip |
vim-patch:8.2.0887: searchcount().exact_match is 1 right after a match
Problem: Searchcount().exact_match is 1 right after a match.
Solution: Use LT_POS() instead of LTOREQ_POS(). (closes vim/vim#6189)
https://github.com/vim/vim/commit/57f75a5a364ad4d8334fdf6b6b41420b48e08390
Diffstat (limited to 'src/nvim/search.c')
-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 ba7c5efa83..89ee5b6bb7 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -4489,7 +4489,7 @@ static void update_search_stat(int dirc, pos_T *pos, pos_T *cursor_pos, cnt++; if (ltoreq(lastpos, p)) { cur = cnt; - if (ltoreq(p, endpos)) { + if (lt(p, endpos)) { exact_match = true; } } |