summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-08 13:27:39 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-08 13:27:39 +0200
commite333e79f9bdff82432e0fd7fcf7ae30ef8e3d092 (patch)
tree28f529433c399025e257596fabad848b82e3aead /src/quickfix.c
parentea39176baab52b646d1e2676e662def718ddd365 (diff)
downloadvim-git-e333e79f9bdff82432e0fd7fcf7ae30ef8e3d092.tar.gz
patch 8.0.1678: errorformat "%r" implies "%>"v8.0.1678
Problem: Errorformat "%r" implies "%>". (Jan Gosmann) Solution: Jump to before setting fmt_ptr. (Yegappan Lakshmanan, closes #2785)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index e5bd2d0f0..8c1df1793 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -844,6 +844,7 @@ qf_parse_line(
/* 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 @@ qf_parse_line(
* match or no match.
*/
fields->valid = TRUE;
-restofline:
for ( ; fmt_ptr != NULL; fmt_ptr = fmt_ptr->next)
{
int r;