From d65f5a06fe2bd199edb06f902d4060b47743221e Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 9 Dec 2025 01:36:39 -0500 Subject: [PATCH] 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) https://github.com/vim/vim/commit/401f0c07982247cc6d1cd22be08b05c44f7fd040 Co-authored-by: Bram Moolenaar --- src/nvim/quickfix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 7ce4709d26..f947fc84f1 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -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,