mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 10:01:49 +00:00
fix(api): nvim_get_hl should return default flag
(cherry picked from commit 5ba43c18e8)
This commit is contained in:
committed by
github-actions[bot]
parent
2625d84577
commit
2430e96da5
@@ -1537,6 +1537,9 @@ static bool hlgroup2dict(Dictionary *hl, NS ns_id, int hl_id, Arena *arena)
|
||||
HlAttrs attr =
|
||||
syn_attr2entry(ns_id == 0 ? sgp->sg_attr : ns_get_hl(&ns_id, hl_id, false, sgp->sg_set));
|
||||
*hl = arena_dict(arena, HLATTRS_DICT_SIZE + 1);
|
||||
if (attr.rgb_ae_attr & HL_DEFAULT) {
|
||||
PUT_C(*hl, "default", BOOLEAN_OBJ(true));
|
||||
}
|
||||
if (link > 0) {
|
||||
PUT_C(*hl, "link", STRING_OBJ(cstr_as_string(hl_table[link - 1].sg_name)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user