aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorglepnir <glephunter@gmail.com>2024-12-27 14:23:06 +0800
committerGitHub <noreply@github.com>2024-12-27 14:23:06 +0800
commit46c7faa00b165a1ad1b7cef8245df30d3dc3ef56 (patch)
tree39de7d7bf73bc67684769a8ec4d385bc81abedd0 /runtime/doc
parent557f2d970044b04a364134ec45060b21b0f0b108 (diff)
downloadrneovim-46c7faa00b165a1ad1b7cef8245df30d3dc3ef56.tar.gz
rneovim-46c7faa00b165a1ad1b7cef8245df30d3dc3ef56.tar.bz2
rneovim-46c7faa00b165a1ad1b7cef8245df30d3dc3ef56.zip
vim-patch:9.1.0963: fuzzy-matching does not prefer full match (#31741)
Problem: fuzzy-matching does not prefer full match (Maxim Kim) Solution: add additional score for a full match (glepnir) fixes: vim/vim#15654 closes: vim/vim#16300 https://github.com/vim/vim/commit/5a04999a7402201cf1b47ff10bc474dd1cdc24f4
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/pattern.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt
index 7f0938be05..be913e941e 100644
--- a/runtime/doc/pattern.txt
+++ b/runtime/doc/pattern.txt
@@ -1485,6 +1485,7 @@ criteria:
- Matches at a camel case character (e.g. Case in CamelCase)
- Matches after a path separator or a hyphen.
- The number of unmatched characters in a string.
+ - A full/exact match is preferred.
The matching string with the highest score is returned first.
For example, when you search for the "get pat" string using fuzzy matching, it