Skip to content

Commit

Permalink
quickfix.c: Fix vimgrep regression neovim#11907
Browse files Browse the repository at this point in the history
Fix ex_vimgrep to properly ignore filetype when running vimgrep.
This restores vimgrep to behaviour before function refactoring.

fix neovim#9842
fix neovim#11856
  • Loading branch information
cballam authored and justinmk committed Feb 20, 2020
1 parent 641e229 commit 5d41bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvim/quickfix.c
Original file line number Diff line number Diff line change
Expand Up @@ -4022,10 +4022,10 @@ static void vgr_display_fname(char_u *fname)
static buf_T *vgr_load_dummy_buf(char_u *fname, char_u *dirname_start,
char_u *dirname_now)
{
char_u *save_ei = NULL;

// Don't do Filetype autocommands to avoid loading syntax and
// indent scripts, a great speed improvement.
char_u *save_ei = au_event_disable(",Filetype");

long save_mls = p_mls;
p_mls = 0;

Expand Down

0 comments on commit 5d41bfc

Please sign in to comment.