diff options
author | James McCoy <jamessan@jamessan.com> | 2017-12-18 23:52:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-18 23:52:06 -0500 |
commit | 53a530b2f54e69adb52d32718edf36df7c0b1b5b (patch) | |
tree | 5cca26337cd4853b088a6a9af0035b21f2556032 /src/nvim/quickfix.c | |
parent | 88863bb6ae5ce6409341a2cf4155d69210c319a4 (diff) | |
parent | 4d2d844c12e1a94a5d3cbe93794bb04ef6fb8377 (diff) | |
download | rneovim-53a530b2f54e69adb52d32718edf36df7c0b1b5b.tar.gz rneovim-53a530b2f54e69adb52d32718edf36df7c0b1b5b.tar.bz2 rneovim-53a530b2f54e69adb52d32718edf36df7c0b1b5b.zip |
Merge pull request #7747 from jamessan/vim-8.0.0565
vim-patch:8.0.0565,8.0.0574,8.0.0579,8.0.0580
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 73ad14ab22..d77cec4fd8 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -2411,11 +2411,18 @@ static void qf_free(qf_info_T *qi, int idx) qi->qf_lists[idx].qf_ptr = NULL; qi->qf_lists[idx].qf_title = NULL; qi->qf_lists[idx].qf_index = 0; + qi->qf_lists[idx].qf_start = NULL; + qi->qf_lists[idx].qf_last = NULL; + qi->qf_lists[idx].qf_ptr = NULL; + qi->qf_lists[idx].qf_nonevalid = true; qf_clean_dir_stack(&qi->qf_dir_stack); qi->qf_directory = NULL; qf_clean_dir_stack(&qi->qf_file_stack); qi->qf_currfile = NULL; + qi->qf_multiline = false; + qi->qf_multiignore = false; + qi->qf_multiscan = false; } /* @@ -4182,6 +4189,11 @@ static int qf_add_entries(qf_info_T *qi, list_T *list, char_u *title, bufnum = 0; } + // If the 'valid' field is present it overrules the detected value. + if (tv_dict_find(d, "valid", -1) != NULL) { + valid = (int)tv_dict_get_number(d, "valid"); + } + int status = qf_add_entry(qi, NULL, // dir (char_u *)filename, |