diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-04-27 01:41:43 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-04-27 01:41:43 -0400 |
commit | 0928904e16a8cc68492732c773931fcedf7efdac (patch) | |
tree | 147d5e2dec0c82477647dc499b164b38e43a5ada /src/nvim/quickfix.c | |
parent | 4230f8c332ce56ed2369f1500f7eaceb0bd968f3 (diff) | |
parent | d9a51ca8119ba05056d593b8ca5b7161d12fc1c1 (diff) | |
download | rneovim-0928904e16a8cc68492732c773931fcedf7efdac.tar.gz rneovim-0928904e16a8cc68492732c773931fcedf7efdac.tar.bz2 rneovim-0928904e16a8cc68492732c773931fcedf7efdac.zip |
Merge #2349 'vim-patch:7.4.519'
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 5cf2f4d5a7..a37a41caeb 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -561,7 +561,9 @@ restofline: tail = NULL; regmatch.regprog = fmt_ptr->prog; - if (vim_regexec(®match, IObuff, (colnr_T)0)) { + int r = vim_regexec(®match, IObuff, (colnr_T)0); + fmt_ptr->prog = regmatch.regprog; + if (r) { if ((idx == 'C' || idx == 'Z') && !multiline) continue; if (vim_strchr((char_u *)"EWI", idx) != NULL) |