From 9897ad3606a780c764ed7382a80425af613a7c63 Mon Sep 17 00:00:00 2001 From: cballam Date: Thu, 20 Feb 2020 16:53:58 +1000 Subject: 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 --- src/nvim/quickfix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 06ffa171ca..c444326533 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -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; -- cgit