summaryrefslogtreecommitdiff
path: root/src/setup.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-03 17:12:05 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-03 17:29:36 -0700
commit802e366db7049f1d8fdab6f38f968bcf0c55b3ae (patch)
treee00dccf493244c2435c38974c030bb900c91b70b /src/setup.c
parent119e3805c1c3a50efb41056a830bc32a8fdec3ae (diff)
*: nested settings should get the raw value
When creating nested setting instances, just pass down the full raw value so if there's any prefix on the value it can be realized as a prefix for the first entry in the nested instance.
Diffstat (limited to 'src/setup.c')
-rw-r--r--src/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setup.c b/src/setup.c
index de71262..acca929 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -90,7 +90,7 @@ int setup_interactively(til_settings_t *settings, int (*setup_func)(const til_se
return r;
}
- setting->value_as_nested_settings = til_settings_new(NULL, desc->container, desc->spec.key ? : label, setting->value);
+ setting->value_as_nested_settings = til_settings_new(NULL, desc->container, desc->spec.key ? : label, til_setting_get_raw_value(setting));
free(label);
/* FIXME: til_settings_new() seems like it should return an errno, since it can encounter parse errors too? */
© All Rights Reserved