mirror of
https://github.com/neovim/neovim.git
synced 2026-07-12 04:19:45 +00:00
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:
@@ -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 the 'valid' field is present it overrules the detected value.
|
||||||
if (tv_dict_find(d, "valid", -1) != NULL) {
|
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,
|
const int status = qf_add_entry(qfl,
|
||||||
|
|||||||
Reference in New Issue
Block a user