comparison 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
comparison
equal deleted inserted replaced
22068:79aa6e93bcab 22069:87502e318c19
643 { 643 {
644 emsg(_(e_invrange)); 644 emsg(_(e_invrange));
645 return; 645 return;
646 } 646 }
647 647
648 di = dict_find(dict, (char_u *)"skipstart", -1); 648 skipstart = dict_get_bool(dict, (char_u *)"skipstart", 0);
649 if (di != NULL)
650 skipstart = tv_get_number(&di->di_tv);
651 649
652 if (dict_find(dict, (char_u *)"id", -1) != NULL) 650 if (dict_find(dict, (char_u *)"id", -1) != NULL)
653 id = dict_get_number(dict, (char_u *)"id"); 651 id = dict_get_number(dict, (char_u *)"id");
654 if (dict_find(dict, (char_u *)"type", -1)) 652 if (dict_find(dict, (char_u *)"type", -1))
655 { 653 {