diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2022-01-01 23:06:09 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2022-02-07 17:20:51 +0000 |
commit | ce797e08f539dc24d16ea8c02591296bbbc83772 (patch) | |
tree | b9ac154502bc1c4d7afb239859a26541b1e6515e /src/nvim/ex_cmds.c | |
parent | 715fbcbb8c6ec4385d1168b1260fdb991d4e6fc5 (diff) | |
download | rneovim-ce797e08f539dc24d16ea8c02591296bbbc83772.tar.gz rneovim-ce797e08f539dc24d16ea8c02591296bbbc83772.tar.bz2 rneovim-ce797e08f539dc24d16ea8c02591296bbbc83772.zip |
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)
https://github.com/vim/vim/commit/bb01a1ef3a093cdb36877ba73474719c531dc8cb
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 3b3d4e50cc..81fce3565a 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -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++; |