summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.570
blob: c644194d5c1ea61dfb9f8c98a5d954d76f83757d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
To: vim_dev@googlegroups.com
Subject: Patch 7.3.570
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.570
Problem:    ":vimgrep" does not obey 'wildignore'.
Solution:   Apply 'wildignore' and 'suffixes' to ":vimgrep". (Ingo Karkat)
Files:	    src/ex_cmds2.c, src/proto/ex_cmds2.pro, src/quickfix.c, src/spell.c


*** ../vim-7.3.569/src/ex_cmds2.c	2012-06-20 15:48:53.000000000 +0200
--- src/ex_cmds2.c	2012-06-29 12:43:34.000000000 +0200
***************
*** 1850,1871 ****
  #if defined(FEAT_QUICKFIX) || defined(FEAT_SYN_HL) || defined(PROTO)
  /*
   * Parse a list of arguments (file names), expand them and return in
!  * "fnames[fcountp]".
   * Return FAIL or OK.
   */
      int
! get_arglist_exp(str, fcountp, fnamesp)
      char_u	*str;
      int		*fcountp;
      char_u	***fnamesp;
  {
      garray_T	ga;
      int		i;
  
      if (get_arglist(&ga, str) == FAIL)
  	return FAIL;
!     i = gen_expand_wildcards(ga.ga_len, (char_u **)ga.ga_data,
! 				       fcountp, fnamesp, EW_FILE|EW_NOTFOUND);
      ga_clear(&ga);
      return i;
  }
--- 1850,1877 ----
  #if defined(FEAT_QUICKFIX) || defined(FEAT_SYN_HL) || defined(PROTO)
  /*
   * Parse a list of arguments (file names), expand them and return in
!  * "fnames[fcountp]".  When "wig" is TRUE, removes files matching 'wildignore'.
   * Return FAIL or OK.
   */
      int
! get_arglist_exp(str, fcountp, fnamesp, wig)
      char_u	*str;
      int		*fcountp;
      char_u	***fnamesp;
+     int		wig;
  {
      garray_T	ga;
      int		i;
  
      if (get_arglist(&ga, str) == FAIL)
  	return FAIL;
!     if (wig == TRUE)
! 	i = expand_wildcards(ga.ga_len, (char_u **)ga.ga_data,
! 					fcountp, fnamesp, EW_FILE|EW_NOTFOUND);
!     else
! 	i = gen_expand_wildcards(ga.ga_len, (char_u **)ga.ga_data,
! 					fcountp, fnamesp, EW_FILE|EW_NOTFOUND);
! 
      ga_clear(&ga);
      return i;
  }
*** ../vim-7.3.569/src/proto/ex_cmds2.pro	2011-05-19 18:26:34.000000000 +0200
--- src/proto/ex_cmds2.pro	2012-06-29 12:43:49.000000000 +0200
***************
*** 42,48 ****
  int check_fname __ARGS((void));
  int buf_write_all __ARGS((buf_T *buf, int forceit));
  int get_arglist __ARGS((garray_T *gap, char_u *str));
! int get_arglist_exp __ARGS((char_u *str, int *fcountp, char_u ***fnamesp));
  void set_arglist __ARGS((char_u *str));
  void check_arg_idx __ARGS((win_T *win));
  void ex_args __ARGS((exarg_T *eap));
--- 42,48 ----
  int check_fname __ARGS((void));
  int buf_write_all __ARGS((buf_T *buf, int forceit));
  int get_arglist __ARGS((garray_T *gap, char_u *str));
! int get_arglist_exp __ARGS((char_u *str, int *fcountp, char_u ***fnamesp, int wig));
  void set_arglist __ARGS((char_u *str));
  void check_arg_idx __ARGS((win_T *win));
  void ex_args __ARGS((exarg_T *eap));
*** ../vim-7.3.569/src/quickfix.c	2012-06-01 18:34:37.000000000 +0200
--- src/quickfix.c	2012-06-29 12:43:49.000000000 +0200
***************
*** 3189,3195 ****
  	    ;
  
      /* parse the list of arguments */
!     if (get_arglist_exp(p, &fcount, &fnames) == FAIL)
  	goto theend;
      if (fcount == 0)
      {
--- 3189,3195 ----
  	    ;
  
      /* parse the list of arguments */
!     if (get_arglist_exp(p, &fcount, &fnames, TRUE) == FAIL)
  	goto theend;
      if (fcount == 0)
      {
*** ../vim-7.3.569/src/spell.c	2012-06-01 17:49:51.000000000 +0200
--- src/spell.c	2012-06-29 12:43:49.000000000 +0200
***************
*** 8553,8559 ****
      }
  
      /* Expand all the remaining arguments (e.g., $VIMRUNTIME). */
!     if (get_arglist_exp(arg, &fcount, &fnames) == OK)
      {
  	mkspell(fcount, fnames, ascii, eap->forceit, FALSE);
  	FreeWild(fcount, fnames);
--- 8553,8559 ----
      }
  
      /* Expand all the remaining arguments (e.g., $VIMRUNTIME). */
!     if (get_arglist_exp(arg, &fcount, &fnames, FALSE) == OK)
      {
  	mkspell(fcount, fnames, ascii, eap->forceit, FALSE);
  	FreeWild(fcount, fnames);
*** ../vim-7.3.569/src/version.c	2012-06-29 12:54:32.000000000 +0200
--- src/version.c	2012-06-29 12:56:12.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     570,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
70. ISDN lines are added to your house on a hourly basis

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///