aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/highlight_group.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-05-23 12:01:20 +0200
committerGitHub <noreply@github.com>2023-05-23 12:01:20 +0200
commit30c02781cac103312e022d62797c08fef0f3e6c1 (patch)
tree1a047542d8cd17146a235bad173b7f814ceb806c /src/nvim/highlight_group.c
parent62e0e0349c00c2c1fa1e5ec09aa7028f12ed329b (diff)
parentcfd4fdfea4d0e68ea50ad412b88b5289ded6fd6f (diff)
downloadrneovim-30c02781cac103312e022d62797c08fef0f3e6c1.tar.gz
rneovim-30c02781cac103312e022d62797c08fef0f3e6c1.tar.bz2
rneovim-30c02781cac103312e022d62797c08fef0f3e6c1.zip
Merge pull request #23730 from famiu/refactor/api/helpers
refactor(api): new helper macros for cstrings as objects
Diffstat (limited to 'src/nvim/highlight_group.c')
-rw-r--r--src/nvim/highlight_group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c
index a17fe2fc8c..09e7d04e02 100644
--- a/src/nvim/highlight_group.c
+++ b/src/nvim/highlight_group.c
@@ -1560,7 +1560,7 @@ static bool hlgroup2dict(Dictionary *hl, NS ns_id, int hl_id, Arena *arena)
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)));
+ PUT_C(*hl, "link", CSTR_AS_OBJ(hl_table[link - 1].sg_name));
}
Dictionary hl_cterm = arena_dict(arena, HLATTRS_DICT_SIZE);
hlattrs2dict(hl, NULL, attr, true, true);