Mercurial > vim
diff src/quickfix.c @ 22137:faaf88167b58 v8.2.1618
patch 8.2.1618: Vim9: cannot pass "true" to setloclist()
Commit: https://github.com/vim/vim/commit/401f0c07982247cc6d1cd22be08b05c44f7fd040
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 5 22:37:39 2020 +0200
patch 8.2.1618: Vim9: cannot pass "true" to setloclist()
Problem: Vim9: cannot pass "true" to setloclist().
Solution: Use dict_get_bool(). (closes https://github.com/vim/vim/issues/6882)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Sep 2020 22:45:03 +0200 |
parents | b7cc5d8ea702 |
children | c3c9830c7cdc |
line wrap: on
line diff
--- 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