comparison src/quickfix.c @ 11390:73cfcf11d983 v8.0.0580

patch 8.0.0580: cannot set the valid flag with setqflist() commit https://github.com/vim/vim/commit/f1d21c8cc83f40c815b6bf13cd2043152db533ee Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 22 21:20:46 2017 +0200 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 https://github.com/vim/vim/issues/1642)
author Christian Brabandt <cb@256bit.org>
date Sat, 22 Apr 2017 21:30:03 +0200
parents 2ed7a34ecc54
children 30af33f4d353
comparison
equal deleted inserted replaced
11389:430269fac9e3 11390:73cfcf11d983
4777 } 4777 }
4778 valid = FALSE; 4778 valid = FALSE;
4779 bufnum = 0; 4779 bufnum = 0;
4780 } 4780 }
4781 4781
4782 /* If the 'valid' field is present it overrules the detected value. */
4783 if ((dict_find(d, (char_u *)"valid", -1)) != NULL)
4784 valid = (int)get_dict_number(d, (char_u *)"valid");
4785
4782 status = qf_add_entry(qi, 4786 status = qf_add_entry(qi,
4783 NULL, /* dir */ 4787 NULL, /* dir */
4784 filename, 4788 filename,
4785 bufnum, 4789 bufnum,
4786 text, 4790 text,