diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-30 20:59:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 20:59:40 -0500 |
commit | a1a4dd34ea26d397f7222afe943f67bbdb889d3f (patch) | |
tree | 34f1dde81d850623a796f633b19d396a740730ad /src/nvim/quickfix.c | |
parent | c3a45032e6fa3b2aafff10a1e5ef606d077cd954 (diff) | |
parent | 87279bb8099fb0c37667ae131d4f7dbeb42dc504 (diff) | |
download | rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.tar.gz rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.tar.bz2 rneovim-a1a4dd34ea26d397f7222afe943f67bbdb889d3f.zip |
Merge pull request #13419 from janlazo/vim-8.2.2067
vim-patch:8.1.2264,8.2.{617,620,628,2067,2069}
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 3d7d587ed2..7fdc998e20 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -6155,7 +6155,7 @@ static int qf_setprop_items_from_lines( qf_free_items(&qi->qf_lists[qf_idx]); } if (qf_init_ext(qi, qf_idx, NULL, NULL, &di->di_tv, errorformat, - false, (linenr_T)0, (linenr_T)0, NULL, NULL) > 0) { + false, (linenr_T)0, (linenr_T)0, NULL, NULL) >= 0) { retval = OK; } @@ -6256,9 +6256,12 @@ static int qf_set_properties(qf_info_T *qi, const dict_T *what, int action, retval = qf_setprop_curidx(qi, qfl, di); } - if (retval == OK) { + if (newlist || retval == OK) { qf_list_changed(qfl); } + if (newlist) { + qf_update_buffer(qi, NULL); + } return retval; } |