summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/shared.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-07-08 08:07:42 +0800
committerGitHub <noreply@github.com>2025-07-08 08:07:42 +0800
commit27daeb0d688e77ab45a3d4b0774db4e893de0b3d (patch)
tree2ff08684a6a6a154a5e5a7d291cdafbcb5a80bce /runtime/lua/vim/shared.lua
parented8b022633de83c8c7ef965b628c89195f2a35e2 (diff)
vim-patch:9.1.1520: completion: search completion doesn't handle 'smartcase' well (#34840)
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>
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions