mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.2813: cannot grep using fuzzy matching
Problem: Cannot grep using fuzzy matching. Solution: Add the "f" flag to :vimgrep. (Yegappan Lakshmanan, closes #8152)
This commit is contained in:
committed by
Bram Moolenaar
parent
5930ddcd25
commit
bb01a1ef3a
@@ -5288,14 +5288,16 @@ skip_vimgrep_pat(char_u *p, char_u **s, int *flags)
|
||||
++p;
|
||||
|
||||
// Find the flags
|
||||
while (*p == 'g' || *p == 'j')
|
||||
while (*p == 'g' || *p == 'j' || *p == 'f')
|
||||
{
|
||||
if (flags != NULL)
|
||||
{
|
||||
if (*p == 'g')
|
||||
*flags |= VGR_GLOBAL;
|
||||
else
|
||||
else if (*p == 'j')
|
||||
*flags |= VGR_NOJUMP;
|
||||
else
|
||||
*flags |= VGR_FUZZY;
|
||||
}
|
||||
++p;
|
||||
}
|
||||
|
Reference in New Issue
Block a user