Make haikufont_list_family actually work

* haikufont.c (haikufont_list_family): Intern returned font
families.
This commit is contained in:
Po Lu 2022-02-09 05:09:24 +00:00
parent f96eee4e06
commit 11ff76153e

View file

@ -1043,8 +1043,7 @@ haikufont_list_family (struct frame *f)
for (idx = 0; idx < length; ++idx)
{
if (styles[idx][0])
list = Fcons (build_string_from_utf8 ((char *) &styles[idx]),
list);
list = Fcons (intern ((char *) &styles[idx]), list);
}
free (styles);