mirror of
https://github.com/neovim/neovim.git
synced 2026-09-25 14:58:32 +00:00
Problem: when shortmess doesn't have 'S', backward search wrap doesn't
show the "W" before count. forward search works fine but
backward fails because the position check logic is backwards -
it checks if cursor < pos instead of using the existing
wrapped flag.
Solution: Use sia->sa_wrapped flag that searchit() already sets
correctly (glepnir).
fixes: vim/vim#5280
closes: vim/vim#19138
https://github.com/vim/vim/commit/ccb7b433652eae18550ab0dfb35722cc6bf6234c
Co-authored-by: glepnir <glephunter@gmail.com>