mirror of
https://github.com/neovim/neovim.git
synced 2026-01-17 10:27:00 +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
ccb7b43365
Co-authored-by: glepnir <glephunter@gmail.com>