0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.0580: cannot set the valid flag with setqflist()

Problem:    Cannot set the valid flag with setqflist().
Solution:   Add the "valid" argument. (Yegappan Lakshmanan, closes #1642)
This commit is contained in:
Bram Moolenaar
2017-04-22 21:20:46 +02:00
parent 9b77016545
commit f1d21c8cc8
4 changed files with 28 additions and 0 deletions

View File

@@ -4779,6 +4779,10 @@ qf_add_entries(
bufnum = 0;
}
/* If the 'valid' field is present it overrules the detected value. */
if ((dict_find(d, (char_u *)"valid", -1)) != NULL)
valid = (int)get_dict_number(d, (char_u *)"valid");
status = qf_add_entry(qi,
NULL, /* dir */
filename,