mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.1618: Vim9: cannot pass "true" to setloclist()
Problem: Vim9: cannot pass "true" to setloclist(). Solution: Use dict_get_bool(). (closes #6882)
This commit is contained in:
@@ -7072,7 +7072,7 @@ qf_add_entry_from_dict(
|
||||
|
||||
// If the 'valid' field is present it overrules the detected value.
|
||||
if ((dict_find(d, (char_u *)"valid", -1)) != NULL)
|
||||
valid = (int)dict_get_number(d, (char_u *)"valid");
|
||||
valid = (int)dict_get_bool(d, (char_u *)"valid", FALSE);
|
||||
|
||||
status = qf_add_entry(qfl,
|
||||
NULL, // dir
|
||||
|
Reference in New Issue
Block a user