summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 5847ae19d..bf0b0b8c6 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -323,13 +323,12 @@ qf_init_ext(efile, buf, tv, errorformat, newlist, lnumfirst, lnumlast)
&& efmp[1] != '\\' && efmp[1] != '%')
{
/* A file name may contain spaces, but this isn't in
- * "\f". use "[^x]\+" instead (x is next character) */
- *ptr++ = '[';
- *ptr++ = '^';
- *ptr++ = efmp[1];
- *ptr++ = ']';
- *ptr++ = '\\';
- *ptr++ = '+';
+ * "\f". For "%f:%l:%m" there may be a ":" in the
+ * file name. Use ".\{-1,}x" instead (x is the next
+ * character), the requirement that :999: follows
+ * should work. */
+ STRCPY(ptr, ".\\{-1,}");
+ ptr += 7;
}
else
{