diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-28 17:33:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-28 17:33:30 +0000 |
| commit | 3a9a2bb6a4f7797f64bc4a611a739ac922b078b0 (patch) | |
| tree | bf37d2a671c5eab97e0697b6aaedc42d5b006da6 | |
| parent | render: remember, and use, last unmaximized size (diff) | |
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.
| -rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |
