Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
11377:b83ee5799d5f | 11378:2ed7a34ecc54 |
---|---|
2748 --qi->qf_lists[idx].qf_count; | 2748 --qi->qf_lists[idx].qf_count; |
2749 } | 2749 } |
2750 vim_free(qi->qf_lists[idx].qf_title); | 2750 vim_free(qi->qf_lists[idx].qf_title); |
2751 qi->qf_lists[idx].qf_title = NULL; | 2751 qi->qf_lists[idx].qf_title = NULL; |
2752 qi->qf_lists[idx].qf_index = 0; | 2752 qi->qf_lists[idx].qf_index = 0; |
2753 qi->qf_lists[idx].qf_start = NULL; | |
2753 qi->qf_lists[idx].qf_last = NULL; | 2754 qi->qf_lists[idx].qf_last = NULL; |
2755 qi->qf_lists[idx].qf_ptr = NULL; | |
2756 qi->qf_lists[idx].qf_nonevalid = TRUE; | |
2754 | 2757 |
2755 qf_clean_dir_stack(&qi->qf_dir_stack); | 2758 qf_clean_dir_stack(&qi->qf_dir_stack); |
2756 qi->qf_directory = NULL; | 2759 qi->qf_directory = NULL; |
2757 qf_clean_dir_stack(&qi->qf_file_stack); | 2760 qf_clean_dir_stack(&qi->qf_file_stack); |
2758 qi->qf_currfile = NULL; | 2761 qi->qf_currfile = NULL; |
2762 qi->qf_multiline = FALSE; | |
2763 qi->qf_multiignore = FALSE; | |
2764 qi->qf_multiscan = FALSE; | |
2759 } | 2765 } |
2760 | 2766 |
2761 /* | 2767 /* |
2762 * qf_mark_adjust: adjust marks | 2768 * qf_mark_adjust: adjust marks |
2763 */ | 2769 */ |
4921 else if (IS_LL_WINDOW(orig_wp)) | 4927 else if (IS_LL_WINDOW(orig_wp)) |
4922 { | 4928 { |
4923 /* If the location list window is open, then create a new empty | 4929 /* If the location list window is open, then create a new empty |
4924 * location list */ | 4930 * location list */ |
4925 qf_info_T *new_ll = ll_new_list(); | 4931 qf_info_T *new_ll = ll_new_list(); |
4932 | |
4926 orig_wp->w_llist_ref = new_ll; | 4933 orig_wp->w_llist_ref = new_ll; |
4927 if (llwin != NULL) | 4934 if (llwin != NULL) |
4928 { | 4935 { |
4929 llwin->w_llist = new_ll; | 4936 llwin->w_llist = new_ll; |
4930 new_ll->qf_refcount++; | 4937 new_ll->qf_refcount++; |