Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
22136:f9171654a423 | 22137:faaf88167b58 |
---|---|
7070 bufnum = 0; | 7070 bufnum = 0; |
7071 } | 7071 } |
7072 | 7072 |
7073 // If the 'valid' field is present it overrules the detected value. | 7073 // If the 'valid' field is present it overrules the detected value. |
7074 if ((dict_find(d, (char_u *)"valid", -1)) != NULL) | 7074 if ((dict_find(d, (char_u *)"valid", -1)) != NULL) |
7075 valid = (int)dict_get_number(d, (char_u *)"valid"); | 7075 valid = (int)dict_get_bool(d, (char_u *)"valid", FALSE); |
7076 | 7076 |
7077 status = qf_add_entry(qfl, | 7077 status = qf_add_entry(qfl, |
7078 NULL, // dir | 7078 NULL, // dir |
7079 filename, | 7079 filename, |
7080 module, | 7080 module, |