0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.1678: errorformat "%r" implies "%>"

Problem:    Errorformat "%r" implies "%>". (Jan Gosmann)
Solution:   Jump to before setting fmt_ptr. (Yegappan Lakshmanan,
            closes #2785)
This commit is contained in:
Bram Moolenaar
2018-04-08 13:27:39 +02:00
parent ea39176baa
commit e333e79f9b
3 changed files with 26 additions and 1 deletions

View File

@@ -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;