comparison src/quickfix.c @ 461:f98374445f66

updated for version 7.0123
author vimboss
date Thu, 04 Aug 2005 21:29:45 +0000
parents 7472c565592a
children 52e76e2b5b65
comparison
equal deleted inserted replaced
460:7f2d3b3c15a2 461:f98374445f66
321 #endif 321 #endif
322 if (*efmp == 'f' && efmp[1] != NUL 322 if (*efmp == 'f' && efmp[1] != NUL
323 && efmp[1] != '\\' && efmp[1] != '%') 323 && efmp[1] != '\\' && efmp[1] != '%')
324 { 324 {
325 /* A file name may contain spaces, but this isn't in 325 /* A file name may contain spaces, but this isn't in
326 * "\f". use "[^x]\+" instead (x is next character) */ 326 * "\f". For "%f:%l:%m" there may be a ":" in the
327 *ptr++ = '['; 327 * file name. Use ".\{-1,}x" instead (x is the next
328 *ptr++ = '^'; 328 * character), the requirement that :999: follows
329 *ptr++ = efmp[1]; 329 * should work. */
330 *ptr++ = ']'; 330 STRCPY(ptr, ".\\{-1,}");
331 *ptr++ = '\\'; 331 ptr += 7;
332 *ptr++ = '+';
333 } 332 }
334 else 333 else
335 { 334 {
336 srcptr = (char_u *)fmt_pat[idx].pattern; 335 srcptr = (char_u *)fmt_pat[idx].pattern;
337 while ((*ptr = *srcptr++) != NUL) 336 while ((*ptr = *srcptr++) != NUL)