neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit d65f5a06fe2bd199edb06f902d4060b47743221e
parent 78bbe53f7615e8b38d5289d9ce0579996109579b
Author: Jan Edmund Lazo <jan.lazo@mail.utoronto.ca>
Date:   Tue,  9 Dec 2025 01:36:39 -0500

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 <Bram@vim.org>

Diffstat:
Msrc/nvim/quickfix.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,