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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user