vim-patch:8.2.1618: Vim9: cannot pass "true" to setloclist()

Problem:    Vim9: cannot pass "true" to setloclist().
Solution:   Use dict_get_bool(). (closes vim/vim#6882)

401f0c0798

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
Jan Edmund Lazo
2025-12-09 01:36:39 -05:00
parent 78bbe53f76
commit d65f5a06fe

View File

@@ -6623,7 +6623,7 @@ static int qf_add_entry_from_dict(qf_list_T *qfl, dict_T *d, bool first_entry, b
// If the 'valid' field is present it overrules the detected value.
if (tv_dict_find(d, "valid", -1) != NULL) {
valid = tv_dict_get_number(d, "valid");
valid = tv_dict_get_bool(d, "valid", false);
}
const int status = qf_add_entry(qfl,