refactor(highlight): make syn_check_group alloc free for existing group

This commit is contained in:
Björn Linse
2021-08-18 14:19:01 +02:00
parent 7bff642169
commit a9f563ab62
2 changed files with 26 additions and 27 deletions

View File

@@ -4253,7 +4253,7 @@ int build_stl_str_hl(
if (*fmt_p == '#') {
stl_items[curitem].type = Highlight;
stl_items[curitem].start = out_p;
stl_items[curitem].minwid = -syn_namen2id(t, (int)(fmt_p - t));
stl_items[curitem].minwid = -syn_name2id_len(t, (size_t)(fmt_p - t));
curitem++;
fmt_p++;
}