summaryrefslogtreecommitdiff
path: root/src/textprop.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-05 21:00:00 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-05 21:00:00 +0200
commitfa2e38df76b3e0919dc01dd1836257dce0ba62b1 (patch)
treea8b9b8b6a6340e834ba01e15711b83c866ccf728 /src/textprop.c
parenta5a40c569695a750cace7d29824101ec8ef2b48f (diff)
downloadvim-git-fa2e38df76b3e0919dc01dd1836257dce0ba62b1.tar.gz
patch 8.2.1613: Vim9: cannot pass "true" to prop_type_add()v8.2.1613
Problem: Vim9: cannot pass "true" to prop_type_add(). Solution: Use tv_get_bool(). (closes #6850)
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textprop.c b/src/textprop.c
index c291a295f..639c5df8a 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -1007,7 +1007,7 @@ prop_type_set(typval_T *argvars, int add)
di = dict_find(dict, (char_u *)"combine", -1);
if (di != NULL)
{
- if (tv_get_number(&di->di_tv))
+ if (tv_get_bool(&di->di_tv))
prop->pt_flags |= PT_FLAG_COMBINE;
else
prop->pt_flags &= ~PT_FLAG_COMBINE;
@@ -1020,7 +1020,7 @@ prop_type_set(typval_T *argvars, int add)
di = dict_find(dict, (char_u *)"start_incl", -1);
if (di != NULL)
{
- if (tv_get_number(&di->di_tv))
+ if (tv_get_bool(&di->di_tv))
prop->pt_flags |= PT_FLAG_INS_START_INCL;
else
prop->pt_flags &= ~PT_FLAG_INS_START_INCL;
@@ -1029,7 +1029,7 @@ prop_type_set(typval_T *argvars, int add)
di = dict_find(dict, (char_u *)"end_incl", -1);
if (di != NULL)
{
- if (tv_get_number(&di->di_tv))
+ if (tv_get_bool(&di->di_tv))
prop->pt_flags |= PT_FLAG_INS_END_INCL;
else
prop->pt_flags &= ~PT_FLAG_INS_END_INCL;