diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-04-26 21:17:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-26 21:17:52 +0200 |
commit | bb01a1ef3a093cdb36877ba73474719c531dc8cb (patch) | |
tree | 46d75e2ab284ea6e579e7066edbd3315293f8add /src/ex_cmds.c | |
parent | 5930ddcd25c3c31a323cdb1b74c228958e124527 (diff) | |
download | vim-git-bb01a1ef3a093cdb36877ba73474719c531dc8cb.tar.gz |
patch 8.2.2813: cannot grep using fuzzy matchingv8.2.2813
Problem: Cannot grep using fuzzy matching.
Solution: Add the "f" flag to :vimgrep. (Yegappan Lakshmanan, closes #8152)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 96ff6ecba..06109d57f 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -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; } |