]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1374: completion: 'smartcase' not respected when filtering matches v9.1.1374
authorGirish Palya <girishji@gmail.com>
Thu, 8 May 2025 21:28:52 +0000 (23:28 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 8 May 2025 21:28:52 +0000 (23:28 +0200)
commitdc314053e121b0a995bdfbcdd2f03ce228e14eb3
tree0462be3ecc090b03d010eb0dde42d03f9edc9c18
parentc3fbaa086e338486673d4cffbcbd18466ad2ac09
patch 9.1.1374: completion: 'smartcase' not respected when filtering matches

Problem:  Currently, 'smartcase' is respected when completing keywords
          using <C-N>, <C-P>, <C-X><C-N>, and <C-X><C-P>. However, when
          a user continues typing and the completion menu is filtered
          using cached matches, 'smartcase' is not applied. This leads
          to poor-quality or irrelevant completion suggestions, as shown
          in the example below.
Solution: When filtering cached completion items after typing additional
          characters, apply case-sensitive comparison if 'smartcase' is
          enabled and the typed pattern includes uppercase characters.
          This ensures consistent and expected completion behavior.
          (Girish Palya)

closes: #17271

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/insert.txt
runtime/doc/options.txt
runtime/doc/tags
runtime/doc/version9.txt
src/insexpand.c
src/search.c
src/testdir/test_ins_complete.vim
src/version.c