From f1d21c8cc83f40c815b6bf13cd2043152db533ee Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 22 Apr 2017 21:20:46 +0200 Subject: 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) --- src/quickfix.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/quickfix.c') diff --git a/src/quickfix.c b/src/quickfix.c index b28a321f3..ea7f5809a 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -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, -- cgit v1.2.1