diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-04-28 17:27:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-04-28 17:27:09 +0200 |
commit | d88e02def5d100a6c5dbc4bb0ec79ee13c88ca5a (patch) | |
tree | f4d972a943ed0ad0fb7a337ff5a41ca467f8ed71 /src/quickfix.c | |
parent | f8441477474f5ca2aa33660e0472a668f8c8bf0a (diff) | |
download | vim-d88e02def5d100a6c5dbc4bb0ec79ee13c88ca5a.zip |
updated for version 7.3.167
Problem: When using the internal grep QuickFixCmdPost is not triggered.
(Yukihiro Nakadaira)
Solution: Change the place where autocommands are triggered.
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 664b686bd..a285f284f 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -2742,6 +2742,13 @@ ex_make(eap) #ifdef FEAT_AUTOCMD char_u *au_name = NULL; + /* Redirect ":grep" to ":vimgrep" if 'grepprg' is "internal". */ + if (grep_internal(eap->cmdidx)) + { + ex_vimgrep(eap); + return; + } + switch (eap->cmdidx) { case CMD_make: au_name = (char_u *)"make"; break; @@ -2763,13 +2770,6 @@ ex_make(eap) } #endif - /* Redirect ":grep" to ":vimgrep" if 'grepprg' is "internal". */ - if (grep_internal(eap->cmdidx)) - { - ex_vimgrep(eap); - return; - } - if (eap->cmdidx == CMD_lmake || eap->cmdidx == CMD_lgrep || eap->cmdidx == CMD_lgrepadd) wp = curwin; @@ -3057,10 +3057,14 @@ ex_vimgrep(eap) switch (eap->cmdidx) { - case CMD_vimgrep: au_name = (char_u *)"vimgrep"; break; - case CMD_lvimgrep: au_name = (char_u *)"lvimgrep"; break; - case CMD_vimgrepadd: au_name = (char_u *)"vimgrepadd"; break; + case CMD_vimgrep: au_name = (char_u *)"vimgrep"; break; + case CMD_lvimgrep: au_name = (char_u *)"lvimgrep"; break; + case CMD_vimgrepadd: au_name = (char_u *)"vimgrepadd"; break; case CMD_lvimgrepadd: au_name = (char_u *)"lvimgrepadd"; break; + case CMD_grep: au_name = (char_u *)"grep"; break; + case CMD_lgrep: au_name = (char_u *)"lgrep"; break; + case CMD_grepadd: au_name = (char_u *)"grepadd"; break; + case CMD_lgrepadd: au_name = (char_u *)"lgrepadd"; break; default: break; } if (au_name != NULL) |