mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
config: add default font when using the default config
When there is no configuration file, and we're using the default configuration, we accidentally jumped pasted the code that ensures we have at least "monospace" in the font list.
This commit is contained in:
parent
ddbfb3676c
commit
3a9a2bb6a4
1 changed files with 1 additions and 1 deletions
2
config.c
2
config.c
|
|
@ -562,10 +562,10 @@ config_load(struct config *conf, const char *conf_path)
|
|||
ret = parse_config_file(f, conf, conf_path);
|
||||
fclose(f);
|
||||
|
||||
out:
|
||||
if (ret && tll_length(conf->fonts) == 0)
|
||||
tll_push_back(conf->fonts, strdup("monospace"));
|
||||
|
||||
out:
|
||||
free(default_path);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue