diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-04-22 21:20:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-04-22 21:20:46 +0200 |
commit | f1d21c8cc83f40c815b6bf13cd2043152db533ee (patch) | |
tree | 7141447bfa2e1b01006d0edef62efeddae993b22 /src/quickfix.c | |
parent | 9b77016545d5ef1a1f4a90c9bb4b7a6693af8918 (diff) | |
download | vim-git-f1d21c8cc83f40c815b6bf13cd2043152db533ee.tar.gz |
patch 8.0.0580: cannot set the valid flag with setqflist()v8.0.0580
Problem: Cannot set the valid flag with setqflist().
Solution: Add the "valid" argument. (Yegappan Lakshmanan, closes #1642)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 4 |
1 files changed, 4 insertions, 0 deletions
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, |