refactor(api): use arena for hlstate inspection

This commit is contained in:
bfredl
2024-02-09 12:41:14 +01:00
parent e9510211f0
commit 4cd43933d3
2 changed files with 40 additions and 24 deletions

View File

@@ -2005,7 +2005,7 @@ Array nvim__inspect_cell(Integer grid, Integer row, Integer col, Arena *arena, E
ADD_C(ret, DICTIONARY_OBJ(hl_get_attr_by_id(attr, true, arena, err)));
// will not work first time
if (!highlight_use_hlstate()) {
ADD_C(ret, ARRAY_OBJ(hl_inspect(attr)));
ADD_C(ret, ARRAY_OBJ(hl_inspect(attr, arena)));
}
return ret;
}