diff options
author | cballam <cole.ballam@gmail.com> | 2020-02-20 16:53:58 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 22:53:58 -0800 |
commit | 9897ad3606a780c764ed7382a80425af613a7c63 (patch) | |
tree | b79fab80a68d0481480ee0432fb66dc66da15f1c /src/nvim/quickfix.c | |
parent | ab12a229410c74e3bcc469bd34a3a4c40af8857c (diff) | |
download | rneovim-9897ad3606a780c764ed7382a80425af613a7c63.tar.gz rneovim-9897ad3606a780c764ed7382a80425af613a7c63.tar.bz2 rneovim-9897ad3606a780c764ed7382a80425af613a7c63.zip |
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
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 4 |
1 files 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; |