quickfix.c: Fix vimgrep regression #11907

Fix ex_vimgrep to properly ignore filetype when running vimgrep.
This restores vimgrep to behaviour before function refactoring.

fix #9842
fix #11856
This commit is contained in:
cballam
2020-02-20 16:53:58 +10:00
committed by GitHub
parent ab12a22941
commit 9897ad3606

View File

@@ -4775,10 +4775,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;