Mercurial > vim
diff src/quickfix.c @ 11378:2ed7a34ecc54 v8.0.0574
patch 8.0.0574: get only one quickfix list after :caddbuf
commit https://github.com/vim/vim/commit/99895eac1cf71be43ece7e14b50e206e041fbe9f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 20 22:44:47 2017 +0200
patch 8.0.0574: get only one quickfix list after :caddbuf
Problem: Get only one quickfix list after :caddbuf.
Solution: Reset qf_multiline. (Yegappan Lakshmanan)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 20 Apr 2017 22:45:04 +0200 |
parents | 83303ad9f1ff |
children | 73cfcf11d983 |
line wrap: on
line diff
--- a/src/quickfix.c +++ b/src/quickfix.c @@ -2750,12 +2750,18 @@ qf_free(qf_info_T *qi, int idx) vim_free(qi->qf_lists[idx].qf_title); 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; } /* @@ -4923,6 +4929,7 @@ qf_free_stack(win_T *wp, qf_info_T *qi) /* If the location list window is open, then create a new empty * location list */ qf_info_T *new_ll = ll_new_list(); + orig_wp->w_llist_ref = new_ll; if (llwin != NULL) {