Mercurial > vim
comparison src/search.c @ 27908:099c2e612827 v8.2.4479
patch 8.2.4479: no fuzzy completieon for maps and abbreviations
Commit: https://github.com/vim/vim/commit/6caeda2fce4bccac2dd43ca9fee1d32ee96b708d
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Feb 27 12:07:30 2022 +0000
patch 8.2.4479: no fuzzy completieon for maps and abbreviations
Problem: No fuzzy completieon for maps and abbreviations.
Solution: Fuzzy complete maps and abbreviations. (Yegappan Lakshmanan,
closes #9856)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Feb 2022 13:15:03 +0100 |
parents | 76e2115dddb8 |
children | 62cc3b60493b |
comparison
equal
deleted
inserted
replaced
27907:172f5b915674 | 27908:099c2e612827 |
---|---|
5004 int_u matchpos[MAX_FUZZY_MATCHES]; | 5004 int_u matchpos[MAX_FUZZY_MATCHES]; |
5005 | 5005 |
5006 if (str == NULL || pat == NULL) | 5006 if (str == NULL || pat == NULL) |
5007 return 0; | 5007 return 0; |
5008 | 5008 |
5009 fuzzy_match(str, pat, FALSE, &score, matchpos, | 5009 fuzzy_match(str, pat, TRUE, &score, matchpos, |
5010 sizeof(matchpos) / sizeof(matchpos[0])); | 5010 sizeof(matchpos) / sizeof(matchpos[0])); |
5011 | 5011 |
5012 return score; | 5012 return score; |
5013 } | 5013 } |
5014 | 5014 |