summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-22 16:06:31 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-22 16:06:31 -0500
commit968bbd92cf9bf9cc364baa973d81f4dcfa647ca3 (patch)
treec0c41aff106ae0543cfc91ab7ab08825863b4406 /config.c
parent2b24b61b156a66dd518f739156c424dbede075b9 (diff)
show working directory in file selector
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.c b/config.c
index 458b455..e9ecbf3 100644
--- a/config.c
+++ b/config.c
@@ -306,6 +306,12 @@ void config_read(Ted *ted, char const *filename) {
} else {
config_err(cfg, "Invalid max menu width: %s.", value);
}
+ } else if (streq(key, "padding")) {
+ if (is_integer && integer >= 10 && integer < 100) {
+ settings->padding = (u8)integer;
+ } else {
+ config_err(cfg, "Invalid padding: %s.", value);
+ }
} else {
config_err(cfg, "Unrecognized core setting: %s.", key);
}