comparison src/quickfix.c @ 167:c93c9cad9618

updated for version 7.0051
author vimboss
date Tue, 22 Feb 2005 08:39:57 +0000
parents 6df0106fc595
children 8c60f65311fa
comparison
equal deleted inserted replaced
166:3a28ed993bbe 167:c93c9cad9618
1454 * For an unrecognized line keep the indent, the compiler may 1454 * For an unrecognized line keep the indent, the compiler may
1455 * mark a word with ^^^^. */ 1455 * mark a word with ^^^^. */
1456 qf_fmt_text((fname != NULL || qfp->qf_lnum != 0) 1456 qf_fmt_text((fname != NULL || qfp->qf_lnum != 0)
1457 ? skipwhite(qfp->qf_text) : qfp->qf_text, 1457 ? skipwhite(qfp->qf_text) : qfp->qf_text,
1458 IObuff, IOSIZE); 1458 IObuff, IOSIZE);
1459 msg_prt_line(IObuff); 1459 msg_prt_line(IObuff, FALSE);
1460 out_flush(); /* show one line at a time */ 1460 out_flush(); /* show one line at a time */
1461 need_return = TRUE; 1461 need_return = TRUE;
1462 last_printed = i; 1462 last_printed = i;
1463 } 1463 }
1464 } 1464 }
2277 void 2277 void
2278 ex_vimgrep(eap) 2278 ex_vimgrep(eap)
2279 exarg_T *eap; 2279 exarg_T *eap;
2280 { 2280 {
2281 regmmatch_T regmatch; 2281 regmmatch_T regmatch;
2282 char_u *save_cpo;
2283 int fcount; 2282 int fcount;
2284 char_u **fnames; 2283 char_u **fnames;
2285 char_u *s; 2284 char_u *s;
2286 char_u *p; 2285 char_u *p;
2287 int i; 2286 int i;
2314 curbuf->b_fname, TRUE, curbuf); 2313 curbuf->b_fname, TRUE, curbuf);
2315 if (did_throw || force_abort) 2314 if (did_throw || force_abort)
2316 return; 2315 return;
2317 } 2316 }
2318 #endif 2317 #endif
2319
2320 /* Make 'cpoptions' empty, the 'l' flag should not be used here. */
2321 save_cpo = p_cpo;
2322 p_cpo = empty_option;
2323 2318
2324 /* Get the search pattern: either white-separated or enclosed in // */ 2319 /* Get the search pattern: either white-separated or enclosed in // */
2325 regmatch.regprog = NULL; 2320 regmatch.regprog = NULL;
2326 p = skip_vimgrep_pat(eap->arg, &s); 2321 p = skip_vimgrep_pat(eap->arg, &s);
2327 if (p == NULL) 2322 if (p == NULL)
2543 curbuf->b_fname, TRUE, curbuf); 2538 curbuf->b_fname, TRUE, curbuf);
2544 #endif 2539 #endif
2545 2540
2546 theend: 2541 theend:
2547 vim_free(regmatch.regprog); 2542 vim_free(regmatch.regprog);
2548
2549 /* Only resture 'cpo' when it wasn't set in the mean time. */
2550 if (p_cpo == empty_option)
2551 p_cpo = save_cpo;
2552 else
2553 free_string_option(save_cpo);
2554 } 2543 }
2555 2544
2556 /* 2545 /*
2557 * Skip over the pattern argument of ":vimgrep /pat/". 2546 * Skip over the pattern argument of ":vimgrep /pat/".
2558 * Put the start of the pattern in "*s", unless "s" is NULL. 2547 * Put the start of the pattern in "*s", unless "s" is NULL.