patch 8.0.1678: errorformat "%r" implies "%>"
Problem: Errorformat "%r" implies "%>". (Jan Gosmann)
Solution: Jump to before setting fmt_ptr. (Yegappan Lakshmanan,
closes #2785)
diff --git a/src/quickfix.c b/src/quickfix.c
index e5bd2d0..8c1df17 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -844,6 +844,7 @@
/* Always ignore case when looking for a matching error. */
regmatch.rm_ic = TRUE;
+restofline:
/* If there was no %> item start at the first pattern */
if (fmt_start == NULL)
fmt_ptr = fmt_first;
@@ -858,7 +859,6 @@
* match or no match.
*/
fields->valid = TRUE;
-restofline:
for ( ; fmt_ptr != NULL; fmt_ptr = fmt_ptr->next)
{
int r;