mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
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)
57f75a5a36
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user