Mercurial > vim
diff src/textprop.c @ 22069:87502e318c19 v8.2.1584
patch 8.2.1584: Vim9: cannot use "true" for "skipstart" in prop_find()
Commit: https://github.com/vim/vim/commit/eb24556df3b16a19009ee3ddee8ae94dc058a3b2
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 3 22:33:44 2020 +0200
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 https://github.com/vim/vim/issues/6852)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 03 Sep 2020 22:45:06 +0200 |
parents | 35c8996a798e |
children | 602e660d5ccf |
line wrap: on
line diff
--- a/src/textprop.c +++ b/src/textprop.c @@ -645,9 +645,7 @@ f_prop_find(typval_T *argvars, typval_T 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");