@@ -876,6 +876,10 @@ HlAttrs dict2hlattrs(Dict(highlight) *dict, bool use_rgb, int *link_id, Error *e
876
876
CHECK_FLAG(cterm, cterm_mask, strikethrough, , HL_STRIKETHROUGH);
877
877
CHECK_FLAG(cterm, cterm_mask, nocombine, , HL_NOCOMBINE);
878
878
879
+
} else if (dict->cterm.type == kObjectTypeArray && dict->cterm.data.array.size == 0) {
880
+
// empty list from Lua API should clear all cterm attributes
881
+
// TODO(clason): handle via gen_api_dispatch
882
+
cterm_mask_provided = true;
879
883
} else if (HAS_KEY(dict->cterm)) {
880
884
api_set_error(err, kErrorTypeValidation, "'cterm' must be a Dictionary.");
881
885
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4