summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-15 21:56:34 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-15 21:56:34 +0200
commit78ddc06bdd5c59cffdbb61eed7dcb5dcc4a17f19 (patch)
tree13144f5a3e548e7ed02527cfc14a7eca724bf9c9 /src/quickfix.c
parent8776889b5befd8eba66f4ad32282db36f85392a6 (diff)
downloadvim-git-78ddc06bdd5c59cffdbb61eed7dcb5dcc4a17f19.tar.gz
patch 8.0.1844: superfluous quickfix code, missing examplesv8.0.1844
Problem: Superfluous quickfix code, missing examples. Solution: Remove unneeded code. Add a few examples. Add a bit more testing. (Yegappan Lakshmanan, closes #2916)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 98360d019..f8bfa41e3 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -5798,16 +5798,6 @@ qf_setprop_items(qf_info_T *qi, int qf_idx, dictitem_T *di, int action)
title_save = vim_strsave(qi->qf_lists[qf_idx].qf_title);
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.
- */
- vim_free(qi->qf_lists[qf_idx].qf_title);
- qi->qf_lists[qf_idx].qf_title = vim_strsave(title_save);
- }
vim_free(title_save);
return retval;