home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.167 < prev    next >
Encoding:
Internet Message Format  |  2012-11-20  |  2.9 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.167
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.167
  11. Problem:    When using the internal grep QuickFixCmdPost is not triggered.
  12.         (Yukihiro Nakadaira)
  13. Solution:   Change the place where autocommands are triggered.
  14. Files:        src/quickfix.c
  15.  
  16.  
  17. *** ../vim-7.3.166/src/quickfix.c    2011-04-11 21:35:03.000000000 +0200
  18. --- src/quickfix.c    2011-04-28 13:28:03.000000000 +0200
  19. ***************
  20. *** 2742,2747 ****
  21. --- 2742,2754 ----
  22.   #ifdef FEAT_AUTOCMD
  23.       char_u    *au_name = NULL;
  24.   
  25. +     /* Redirect ":grep" to ":vimgrep" if 'grepprg' is "internal". */
  26. +     if (grep_internal(eap->cmdidx))
  27. +     {
  28. +     ex_vimgrep(eap);
  29. +     return;
  30. +     }
  31.       switch (eap->cmdidx)
  32.       {
  33.       case CMD_make:        au_name = (char_u *)"make"; break;
  34. ***************
  35. *** 2763,2775 ****
  36.       }
  37.   #endif
  38.   
  39. -     /* Redirect ":grep" to ":vimgrep" if 'grepprg' is "internal". */
  40. -     if (grep_internal(eap->cmdidx))
  41. -     {
  42. -     ex_vimgrep(eap);
  43. -     return;
  44. -     }
  45.       if (eap->cmdidx == CMD_lmake || eap->cmdidx == CMD_lgrep
  46.       || eap->cmdidx == CMD_lgrepadd)
  47.       wp = curwin;
  48. --- 2770,2775 ----
  49. ***************
  50. *** 3057,3066 ****
  51.   
  52.       switch (eap->cmdidx)
  53.       {
  54. !     case CMD_vimgrep: au_name = (char_u *)"vimgrep"; break;
  55. !     case CMD_lvimgrep: au_name = (char_u *)"lvimgrep"; break;
  56. !     case CMD_vimgrepadd: au_name = (char_u *)"vimgrepadd"; break;
  57.       case CMD_lvimgrepadd: au_name = (char_u *)"lvimgrepadd"; break;
  58.       default: break;
  59.       }
  60.       if (au_name != NULL)
  61. --- 3057,3070 ----
  62.   
  63.       switch (eap->cmdidx)
  64.       {
  65. !     case CMD_vimgrep:     au_name = (char_u *)"vimgrep"; break;
  66. !     case CMD_lvimgrep:    au_name = (char_u *)"lvimgrep"; break;
  67. !     case CMD_vimgrepadd:  au_name = (char_u *)"vimgrepadd"; break;
  68.       case CMD_lvimgrepadd: au_name = (char_u *)"lvimgrepadd"; break;
  69. +     case CMD_grep:          au_name = (char_u *)"grep"; break;
  70. +     case CMD_lgrep:          au_name = (char_u *)"lgrep"; break;
  71. +     case CMD_grepadd:     au_name = (char_u *)"grepadd"; break;
  72. +     case CMD_lgrepadd:    au_name = (char_u *)"lgrepadd"; break;
  73.       default: break;
  74.       }
  75.       if (au_name != NULL)
  76. *** ../vim-7.3.166/src/version.c    2011-04-28 17:24:54.000000000 +0200
  77. --- src/version.c    2011-04-28 17:26:17.000000000 +0200
  78. ***************
  79. *** 716,717 ****
  80. --- 716,719 ----
  81.   {   /* Add new patch number below this line */
  82. + /**/
  83. +     167,
  84.   /**/
  85.  
  86. -- 
  87. Micro$oft: where do you want to go today?
  88.     Linux: where do you want to go tomorrow?
  89.   FreeBSD: are you guys coming, or what?
  90.  
  91.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  92. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  93. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  94.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  95.