diff options
| author | Stéphane Klein <contact@stephane-klein.info> | 2026-01-08 23:31:04 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-03-02 08:16:36 +0000 |
| commit | dc0c8550c38ffd0983789573a1a0d4417016c2c7 (patch) | |
| tree | a0e238a236f3f071095a803b9a0089f516cac21c /config.c | |
| parent | support four-sided padding (left/top/right/bottom) (diff) | |
Spawning new terminal with --config from parent instance
Reference: https://codeberg.org/dnkl/foot/issues/1622
Signed-off-by: Stéphane Klein <contact@stephane-klein.info>
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3459,6 +3459,7 @@ config_load(struct config *conf, const char *conf_path, enum fcft_capabilities fcft_caps = fcft_capabilities(); *conf = (struct config) { + .conf_path = (conf_path ? xstrdup(conf_path) : NULL), .term = xstrdup(FOOT_DEFAULT_TERM), .shell = get_shell(), .title = xstrdup("foot"), @@ -3914,6 +3915,7 @@ config_clone(const struct config *old) struct config *conf = xmalloc(sizeof(*conf)); *conf = *old; + conf->conf_path = (old->conf_path ? xstrdup(old->conf_path) : NULL); conf->term = xstrdup(old->term); conf->shell = xstrdup(old->shell); conf->title = xstrdup(old->title); @@ -4014,6 +4016,7 @@ UNITTEST void config_free(struct config *conf) { + free(conf->conf_path); free(conf->term); free(conf->shell); free(conf->title); |
