]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1526: completion: search completion match may differ in case v9.1.1526
authorGirish Palya <girishji@gmail.com>
Tue, 8 Jul 2025 19:29:02 +0000 (21:29 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 8 Jul 2025 19:29:02 +0000 (21:29 +0200)
commit93c2d5bf7f01db594a3f5ebecbd5a31dfd411544
tree8e95f70f26f7b77858c956d232b431b605b52f31
parentb3eaae21b9f681d23466e7caa0b9d7e32cb4b206
patch 9.1.1526: completion: search completion match may differ in case

Problem:  completion: search completion match may differ in case
          (techntools)
Solution: add "exacttext" to 'wildoptions' value (Girish Palya)

This flag does the following:

exacttext
      When this flag is present, search pattern completion
      (e.g., in |/|, |?|, |:s|, |:g|, |:v|, and |:vim|)
      shows exact buffer text as menu items, without
      preserving regex artifacts like position
      anchors (e.g., |/\<|). This provides more intuitive
      menu items that match the actual buffer text. However,
      searches may be less accurate since the pattern is not
      preserved exactly.
      By default, Vim preserves the typed pattern (with
      anchors) and appends the matched word. This preserves
      search correctness, especially when using regular
      expressions or with 'smartcase' enabled. However, the
      case of the appended matched word may not exactly
      match the case of the word in the buffer.

fixes: #17654
closes: #17667

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/options.txt
runtime/doc/version9.txt
src/cmdexpand.c
src/option.h
src/optionstr.c
src/testdir/test_cmdline.vim
src/version.c