comparison src/ex_cmds2.c @ 3620:4f1c511e71f8 v7.3.570

updated for version 7.3.570 Problem: ":vimgrep" does not obey 'wildignore'. Solution: Apply 'wildignore' and 'suffixes' to ":vimgrep". (Ingo Karkat)
author Bram Moolenaar <bram@vim.org>
date Fri, 29 Jun 2012 12:57:06 +0200
parents b2763055bdf2
children 8115f449a574
comparison
equal deleted inserted replaced
3619:08ea0523a078 3620:4f1c511e71f8
1848 } 1848 }
1849 1849
1850 #if defined(FEAT_QUICKFIX) || defined(FEAT_SYN_HL) || defined(PROTO) 1850 #if defined(FEAT_QUICKFIX) || defined(FEAT_SYN_HL) || defined(PROTO)
1851 /* 1851 /*
1852 * Parse a list of arguments (file names), expand them and return in 1852 * Parse a list of arguments (file names), expand them and return in
1853 * "fnames[fcountp]". 1853 * "fnames[fcountp]". When "wig" is TRUE, removes files matching 'wildignore'.
1854 * Return FAIL or OK. 1854 * Return FAIL or OK.
1855 */ 1855 */
1856 int 1856 int
1857 get_arglist_exp(str, fcountp, fnamesp) 1857 get_arglist_exp(str, fcountp, fnamesp, wig)
1858 char_u *str; 1858 char_u *str;
1859 int *fcountp; 1859 int *fcountp;
1860 char_u ***fnamesp; 1860 char_u ***fnamesp;
1861 int wig;
1861 { 1862 {
1862 garray_T ga; 1863 garray_T ga;
1863 int i; 1864 int i;
1864 1865
1865 if (get_arglist(&ga, str) == FAIL) 1866 if (get_arglist(&ga, str) == FAIL)
1866 return FAIL; 1867 return FAIL;
1867 i = gen_expand_wildcards(ga.ga_len, (char_u **)ga.ga_data, 1868 if (wig == TRUE)
1868 fcountp, fnamesp, EW_FILE|EW_NOTFOUND); 1869 i = expand_wildcards(ga.ga_len, (char_u **)ga.ga_data,
1870 fcountp, fnamesp, EW_FILE|EW_NOTFOUND);
1871 else
1872 i = gen_expand_wildcards(ga.ga_len, (char_u **)ga.ga_data,
1873 fcountp, fnamesp, EW_FILE|EW_NOTFOUND);
1874
1869 ga_clear(&ga); 1875 ga_clear(&ga);
1870 return i; 1876 return i;
1871 } 1877 }
1872 #endif 1878 #endif
1873 1879