On 7 October 2016, Gerd Wachsmuth <vim-dev-git...@256bit.org> wrote: > > The issue is that the multiline error is started by %W and ends with %Z > > without adding any errors. > In my opinion, it is not the issue that no `%C` is present: > With > > set efm=%+Eerror\ %l,%-Winfo\ %m\ %l,%+Ceven\ more\ %m,%Zmore\ info > (note the `%C` line) > and the errorfile > ```` > info bla 3 > even more info > more info > error 2 > ```` > we do not see `error 2` in the quickfix window.
What seems to be going on here is that the first line gets matched as `%-W` and `qf_parse_line()` returns `QF_IGNORE_LINE`. Then the second line gets matched as `%+C`, it sets `%m`, but then it can't find a previous line to continue since the previous line was ignored. Consequently `qf_parse_line()` returns `QF_FAIL`, and `qf_init_ext()` bails out at that point, silently ignoring any remaining input. Possible solution: ```diff diff --git a/src/quickfix.c b/src/quickfix.c index 52abbeb..9139663 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -1010,6 +1010,8 @@ restofline: } else if (vim_strchr((char_u *)"CZ", idx) != NULL) { /* continuation of multi-line msg */ + if (!qi->qf_multiignore) + { qfline_T *qfprev = qi->qf_lists[qi->qf_curlist].qf_last; if (qfprev == NULL) @@ -1043,6 +1045,7 @@ restofline: ? fields->namebuf : qi->qf_currfile != NULL && fields->valid ? qi->qf_currfile : 0); + } if (idx == 'Z') qi->qf_multiline = qi->qf_multiignore = FALSE; line_breakcheck(); ``` /lcd -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.