1
0
forked from aniani/vim

patch 8.2.1584: Vim9: cannot use "true" for "skipstart" in prop_find()

Problem:    Vim9: cannot use "true" for "skipstart" in prop_find().
Solution:   Use dict_get_bool() instead of tv_get_number(). (closes #6852)
This commit is contained in:
Bram Moolenaar
2020-09-03 22:33:44 +02:00
parent 18eedfa40b
commit eb24556df3
3 changed files with 22 additions and 17 deletions

View File

@@ -645,9 +645,7 @@ f_prop_find(typval_T *argvars, typval_T *rettv)
return;
}
di = dict_find(dict, (char_u *)"skipstart", -1);
if (di != NULL)
skipstart = tv_get_number(&di->di_tv);
skipstart = dict_get_bool(dict, (char_u *)"skipstart", 0);
if (dict_find(dict, (char_u *)"id", -1) != NULL)
id = dict_get_number(dict, (char_u *)"id");