mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-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 vim/vim#8152)
bb01a1ef3a
This commit is contained in:
@@ -6141,12 +6141,14 @@ char_u *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