mirror of
https://github.com/neovim/neovim.git
synced 2026-09-25 23:08:29 +00:00
Problem: When using `/` or `?` in command-line mode with 'ignorecase' and
'smartcase' enabled, the completion menu could show items that
don't actually match any text in the buffer due to case mismatches
Solution: Instead of validating menu items only against the user-typed
pattern, the new logic also checks whether the completed item
matches actual buffer content. If needed, it retries the match
using a lowercased version of the candidate, respecting
smartcase semantics.
closes: vim/vim#17665
https://github.com/vim/vim/commit/af220077848dd5d0d303c1ac262692351b90f212
Co-authored-by: Girish Palya <girishji@gmail.com>