summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/testdir/test_textprop.vim11
-rw-r--r--src/textprop.c6
-rw-r--r--src/version.c2
3 files changed, 16 insertions, 3 deletions
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index f7718124b..99ca31a37 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -321,6 +321,17 @@ func Test_prop_remove()
bwipe!
endfunc
+def Test_prop_add_vim9()
+ prop_type_add('comment', #{
+ highlight: 'Directory',
+ priority: 123,
+ start_incl: true,
+ end_incl: true,
+ combine: false,
+ })
+ prop_type_delete('comment')
+enddef
+
def Test_prop_remove_vim9()
new
call AddPropTypes()
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;
diff --git a/src/version.c b/src/version.c
index 34516ac76..4b9100cc4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1613,
+/**/
1612,
/**/
1611,