diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-05 22:37:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-05 22:37:39 +0200 |
commit | 401f0c07982247cc6d1cd22be08b05c44f7fd040 (patch) | |
tree | 2fd536d4d42da3660cc2871a30be7bdb2c34c9f5 /src/quickfix.c | |
parent | 4b9bd692bdffba03fda04f9979e25431b53e416b (diff) | |
download | vim-git-401f0c07982247cc6d1cd22be08b05c44f7fd040.tar.gz |
patch 8.2.1618: Vim9: cannot pass "true" to setloclist()v8.2.1618
Problem: Vim9: cannot pass "true" to setloclist().
Solution: Use dict_get_bool(). (closes #6882)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r-- | src/quickfix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 09d5d8fa0..c8858b456 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -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 |