patch 8.1.1278: missing change for "combine" field
Problem: Missing change for "combine" field.
Solution: Also change the textprop implementation.
diff --git a/src/textprop.c b/src/textprop.c
index 34738ad..b44810a 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -733,6 +733,15 @@
prop->pt_hl_id = hl_id;
}
+ di = dict_find(dict, (char_u *)"combine", -1);
+ if (di != NULL)
+ {
+ if (tv_get_number(&di->di_tv))
+ prop->pt_flags |= PT_FLAG_COMBINE;
+ else
+ prop->pt_flags &= ~PT_FLAG_COMBINE;
+ }
+
di = dict_find(dict, (char_u *)"priority", -1);
if (di != NULL)
prop->pt_priority = tv_get_number(&di->di_tv);
@@ -845,6 +854,8 @@
if (prop->pt_hl_id > 0)
dict_add_string(d, "highlight", syn_id2name(prop->pt_hl_id));
dict_add_number(d, "priority", prop->pt_priority);
+ dict_add_number(d, "combine",
+ (prop->pt_flags & PT_FLAG_COMBINE) ? 1 : 0);
dict_add_number(d, "start_incl",
(prop->pt_flags & PT_FLAG_INS_START_INCL) ? 1 : 0);
dict_add_number(d, "end_incl",