|
Karsten Hopp |
63b462 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
63b462 |
Subject: Patch 7.3.167
|
|
Karsten Hopp |
63b462 |
Fcc: outbox
|
|
Karsten Hopp |
63b462 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
63b462 |
Mime-Version: 1.0
|
|
Karsten Hopp |
63b462 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
63b462 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
63b462 |
------------
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
Patch 7.3.167
|
|
Karsten Hopp |
63b462 |
Problem: When using the internal grep QuickFixCmdPost is not triggered.
|
|
Karsten Hopp |
63b462 |
(Yukihiro Nakadaira)
|
|
Karsten Hopp |
63b462 |
Solution: Change the place where autocommands are triggered.
|
|
Karsten Hopp |
63b462 |
Files: src/quickfix.c
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
*** ../vim-7.3.166/src/quickfix.c 2011-04-11 21:35:03.000000000 +0200
|
|
Karsten Hopp |
63b462 |
--- src/quickfix.c 2011-04-28 13:28:03.000000000 +0200
|
|
Karsten Hopp |
63b462 |
***************
|
|
Karsten Hopp |
63b462 |
*** 2742,2747 ****
|
|
Karsten Hopp |
63b462 |
--- 2742,2754 ----
|
|
Karsten Hopp |
63b462 |
#ifdef FEAT_AUTOCMD
|
|
Karsten Hopp |
63b462 |
char_u *au_name = NULL;
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
+ /* Redirect ":grep" to ":vimgrep" if 'grepprg' is "internal". */
|
|
Karsten Hopp |
63b462 |
+ if (grep_internal(eap->cmdidx))
|
|
Karsten Hopp |
63b462 |
+ {
|
|
Karsten Hopp |
63b462 |
+ ex_vimgrep(eap);
|
|
Karsten Hopp |
63b462 |
+ return;
|
|
Karsten Hopp |
63b462 |
+ }
|
|
Karsten Hopp |
63b462 |
+
|
|
Karsten Hopp |
63b462 |
switch (eap->cmdidx)
|
|
Karsten Hopp |
63b462 |
{
|
|
Karsten Hopp |
63b462 |
case CMD_make: au_name = (char_u *)"make"; break;
|
|
Karsten Hopp |
63b462 |
***************
|
|
Karsten Hopp |
63b462 |
*** 2763,2775 ****
|
|
Karsten Hopp |
63b462 |
}
|
|
Karsten Hopp |
63b462 |
#endif
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
- /* Redirect ":grep" to ":vimgrep" if 'grepprg' is "internal". */
|
|
Karsten Hopp |
63b462 |
- if (grep_internal(eap->cmdidx))
|
|
Karsten Hopp |
63b462 |
- {
|
|
Karsten Hopp |
63b462 |
- ex_vimgrep(eap);
|
|
Karsten Hopp |
63b462 |
- return;
|
|
Karsten Hopp |
63b462 |
- }
|
|
Karsten Hopp |
63b462 |
-
|
|
Karsten Hopp |
63b462 |
if (eap->cmdidx == CMD_lmake || eap->cmdidx == CMD_lgrep
|
|
Karsten Hopp |
63b462 |
|| eap->cmdidx == CMD_lgrepadd)
|
|
Karsten Hopp |
63b462 |
wp = curwin;
|
|
Karsten Hopp |
63b462 |
--- 2770,2775 ----
|
|
Karsten Hopp |
63b462 |
***************
|
|
Karsten Hopp |
63b462 |
*** 3057,3066 ****
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
switch (eap->cmdidx)
|
|
Karsten Hopp |
63b462 |
{
|
|
Karsten Hopp |
63b462 |
! case CMD_vimgrep: au_name = (char_u *)"vimgrep"; break;
|
|
Karsten Hopp |
63b462 |
! case CMD_lvimgrep: au_name = (char_u *)"lvimgrep"; break;
|
|
Karsten Hopp |
63b462 |
! case CMD_vimgrepadd: au_name = (char_u *)"vimgrepadd"; break;
|
|
Karsten Hopp |
63b462 |
case CMD_lvimgrepadd: au_name = (char_u *)"lvimgrepadd"; break;
|
|
Karsten Hopp |
63b462 |
default: break;
|
|
Karsten Hopp |
63b462 |
}
|
|
Karsten Hopp |
63b462 |
if (au_name != NULL)
|
|
Karsten Hopp |
63b462 |
--- 3057,3070 ----
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
switch (eap->cmdidx)
|
|
Karsten Hopp |
63b462 |
{
|
|
Karsten Hopp |
63b462 |
! case CMD_vimgrep: au_name = (char_u *)"vimgrep"; break;
|
|
Karsten Hopp |
63b462 |
! case CMD_lvimgrep: au_name = (char_u *)"lvimgrep"; break;
|
|
Karsten Hopp |
63b462 |
! case CMD_vimgrepadd: au_name = (char_u *)"vimgrepadd"; break;
|
|
Karsten Hopp |
63b462 |
case CMD_lvimgrepadd: au_name = (char_u *)"lvimgrepadd"; break;
|
|
Karsten Hopp |
63b462 |
+ case CMD_grep: au_name = (char_u *)"grep"; break;
|
|
Karsten Hopp |
63b462 |
+ case CMD_lgrep: au_name = (char_u *)"lgrep"; break;
|
|
Karsten Hopp |
63b462 |
+ case CMD_grepadd: au_name = (char_u *)"grepadd"; break;
|
|
Karsten Hopp |
63b462 |
+ case CMD_lgrepadd: au_name = (char_u *)"lgrepadd"; break;
|
|
Karsten Hopp |
63b462 |
default: break;
|
|
Karsten Hopp |
63b462 |
}
|
|
Karsten Hopp |
63b462 |
if (au_name != NULL)
|
|
Karsten Hopp |
63b462 |
*** ../vim-7.3.166/src/version.c 2011-04-28 17:24:54.000000000 +0200
|
|
Karsten Hopp |
63b462 |
--- src/version.c 2011-04-28 17:26:17.000000000 +0200
|
|
Karsten Hopp |
63b462 |
***************
|
|
Karsten Hopp |
63b462 |
*** 716,717 ****
|
|
Karsten Hopp |
63b462 |
--- 716,719 ----
|
|
Karsten Hopp |
63b462 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
63b462 |
+ /**/
|
|
Karsten Hopp |
63b462 |
+ 167,
|
|
Karsten Hopp |
63b462 |
/**/
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
--
|
|
Karsten Hopp |
63b462 |
Micro$oft: where do you want to go today?
|
|
Karsten Hopp |
63b462 |
Linux: where do you want to go tomorrow?
|
|
Karsten Hopp |
63b462 |
FreeBSD: are you guys coming, or what?
|
|
Karsten Hopp |
63b462 |
|
|
Karsten Hopp |
63b462 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
63b462 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
63b462 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
63b462 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|