comparison src/quickfix.c @ 23045:450d6e4992e1 v8.2.2069

patch 8.2.2069: the quickfix window is not updated after setqflist() Commit: https://github.com/vim/vim/commit/287153c5d481a09ffe98a95ad78390ff580bb557 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 29 14:20:27 2020 +0100 patch 8.2.2069: the quickfix window is not updated after setqflist() Problem: The quickfix window is not updated after setqflist(). Solution: Update the quickfix buffer. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7390, closes #7385)
author Bram Moolenaar <Bram@vim.org>
date Sun, 29 Nov 2020 14:30:04 +0100
parents fab8455af19c
children db97415750ce
comparison
equal deleted inserted replaced
23044:6d22f8380f7f 23045:450d6e4992e1
7347 return FAIL; 7347 return FAIL;
7348 7348
7349 if (action == 'r') 7349 if (action == 'r')
7350 qf_free_items(&qi->qf_lists[qf_idx]); 7350 qf_free_items(&qi->qf_lists[qf_idx]);
7351 if (qf_init_ext(qi, qf_idx, NULL, NULL, &di->di_tv, errorformat, 7351 if (qf_init_ext(qi, qf_idx, NULL, NULL, &di->di_tv, errorformat,
7352 FALSE, (linenr_T)0, (linenr_T)0, NULL, NULL) > 0) 7352 FALSE, (linenr_T)0, (linenr_T)0, NULL, NULL) >= 0)
7353 retval = OK; 7353 retval = OK;
7354 7354
7355 return retval; 7355 return retval;
7356 } 7356 }
7357 7357
7472 if ((di = dict_find(what, (char_u *)"idx", -1)) != NULL) 7472 if ((di = dict_find(what, (char_u *)"idx", -1)) != NULL)
7473 retval = qf_setprop_curidx(qi, qfl, di); 7473 retval = qf_setprop_curidx(qi, qfl, di);
7474 if ((di = dict_find(what, (char_u *)"quickfixtextfunc", -1)) != NULL) 7474 if ((di = dict_find(what, (char_u *)"quickfixtextfunc", -1)) != NULL)
7475 retval = qf_setprop_qftf(qi, qfl, di); 7475 retval = qf_setprop_qftf(qi, qfl, di);
7476 7476
7477 if (retval == OK) 7477 if (newlist || retval == OK)
7478 qf_list_changed(qfl); 7478 qf_list_changed(qfl);
7479 if (newlist)
7480 qf_update_buffer(qi, NULL);
7479 7481
7480 return retval; 7482 return retval;
7481 } 7483 }
7482 7484
7483 /* 7485 /*