diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-04-05 10:57:57 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2019-05-05 13:46:19 +0200 |
commit | ced3598a96d658a959da03ead24b00db40fe861f (patch) | |
tree | 8720cb8f6bfb767e57958c0faf0f685d82f9efb2 /src/nvim/quickfix.c | |
parent | 98a818776419a55e8f488f4d77d413287eed2ec3 (diff) | |
download | rneovim-ced3598a96d658a959da03ead24b00db40fe861f.tar.gz rneovim-ced3598a96d658a959da03ead24b00db40fe861f.tar.bz2 rneovim-ced3598a96d658a959da03ead24b00db40fe861f.zip |
vim-patch:8.0.1678: errorformat "%r" implies "%>"
Problem: Errorformat "%r" implies "%>". (Jan Gosmann)
Solution: Jump to before setting fmt_ptr. (Yegappan Lakshmanan)
https://github.com/vim/vim/commit/e333e79f9bdff82432e0fd7fcf7ae30ef8e3d092
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 2f8381267b..f4849c92a6 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -730,6 +730,7 @@ static int qf_parse_line(qf_info_T *qi, int qf_idx, char_u *linebuf, // 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; @@ -741,7 +742,6 @@ static int qf_parse_line(qf_info_T *qi, int qf_idx, char_u *linebuf, // Try to match each part of 'errorformat' until we find a complete // match or no match. fields->valid = true; -restofline: for (; fmt_ptr != NULL; fmt_ptr = fmt_ptr->next) { idx = fmt_ptr->prefix; if (qfl->qf_multiscan && vim_strchr((char_u *)"OPQ", idx) == NULL) { |