comparison src/quickfix.c @ 13016:e47e70300f30 v8.0.1384

patch 8.0.1384: not enough quickfix help; confusing winid commit https://github.com/vim/vim/commit/74240d3febd1e3bc7cf086c647c9348b20716c33 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 10 15:26:15 2017 +0100 patch 8.0.1384: not enough quickfix help; confusing winid Problem: Not enough quickfix help; confusing winid. Solution: Add more examples in the help. When the quickfix window is not present, return zero for getqflist() with 'winid'. Add more tests for jumping to quickfix list entries. (Yegappan Lakshmanan, closes #2427)
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Dec 2017 15:30:06 +0100
parents 49e136457c66
children 7c0e0e923537
comparison
equal deleted inserted replaced
13015:e314282a23ac 13016:e47e70300f30
4947 if ((status == OK) && (flags & QF_GETLIST_NR)) 4947 if ((status == OK) && (flags & QF_GETLIST_NR))
4948 status = dict_add_nr_str(retdict, "nr", qf_idx + 1, NULL); 4948 status = dict_add_nr_str(retdict, "nr", qf_idx + 1, NULL);
4949 if ((status == OK) && (flags & QF_GETLIST_WINID)) 4949 if ((status == OK) && (flags & QF_GETLIST_WINID))
4950 { 4950 {
4951 win_T *win; 4951 win_T *win;
4952 int win_id = 0;
4953
4952 win = qf_find_win(qi); 4954 win = qf_find_win(qi);
4953 if (win != NULL) 4955 if (win != NULL)
4954 status = dict_add_nr_str(retdict, "winid", win->w_id, NULL); 4956 win_id = win->w_id;
4957 status = dict_add_nr_str(retdict, "winid", win_id, NULL);
4955 } 4958 }
4956 if ((status == OK) && (flags & QF_GETLIST_ITEMS)) 4959 if ((status == OK) && (flags & QF_GETLIST_ITEMS))
4957 { 4960 {
4958 list_T *l = list_alloc(); 4961 list_T *l = list_alloc();
4959 if (l != NULL) 4962 if (l != NULL)