diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-11-15 18:18:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-15 18:18:12 +0100 |
commit | 1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3 (patch) | |
tree | 1c169437d934d30564b42127b11e888fde04a2fd /src/nvim/quickfix.c | |
parent | bcadf324cb6516369cb89da9bb1e8056f6fb91bb (diff) | |
parent | 87aaa8e837d873577ee6a908a387f40e3548bcb6 (diff) | |
download | rneovim-1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3.tar.gz rneovim-1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3.tar.bz2 rneovim-1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3.zip |
Merge pull request #13293 from janlazo/vim-8.2.1976
vim-patch:8.2.{1979,1981,1982,1985,1987}
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 6ca97c3072..d3ca65c53c 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3975,11 +3975,15 @@ static void qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last) *dirname = NUL; // Add one line for each error - if (old_last == NULL || old_last->qf_next == NULL) { + if (old_last == NULL) { qfp = qfl->qf_start; lnum = 0; } else { - qfp = old_last->qf_next; + if (old_last->qf_next != NULL) { + qfp = old_last->qf_next; + } else { + qfp = old_last; + } lnum = buf->b_ml.ml_line_count; } while (lnum < qfl->qf_count) { |