mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 07:48:18 +00:00
vim-patch:8.0.1844: superfluous quickfix code, missing examples
Problem: Superfluous quickfix code, missing examples.
Solution: Remove unneeded code. Add a few examples. Add a bit more
testing. (Yegappan Lakshmanan, closes vim/vim#2916)
78ddc06bdd
This commit is contained in:
@@ -5066,13 +5066,6 @@ static int qf_setprop_items(qf_info_T *qi, int qf_idx, dictitem_T *di,
|
||||
const int retval = qf_add_entries(qi, qf_idx, di->di_tv.vval.v_list,
|
||||
title_save,
|
||||
action == ' ' ? 'a' : action);
|
||||
if (action == 'r') {
|
||||
// When replacing the quickfix list entries using
|
||||
// qf_add_entries(), the title is set with a ':' prefix.
|
||||
// Restore the title with the saved title.
|
||||
xfree(qi->qf_lists[qf_idx].qf_title);
|
||||
qi->qf_lists[qf_idx].qf_title = vim_strsave(title_save);
|
||||
}
|
||||
xfree(title_save);
|
||||
|
||||
return retval;
|
||||
|
Reference in New Issue
Block a user