summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-21 11:50:51 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-21 11:50:51 -0500
commitdd91d6c72625cc7ed2ec5954a5cbca35fd7655d4 (patch)
tree4b1e52098e3fdbb9a36395c33ad057b7cbaf0d01 /config.c
parent3d86329abd754319a36459f8eb3e4bce6efffe1e (diff)
split file selector into its own thing
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 3bce64d..458b455 100644
--- a/config.c
+++ b/config.c
@@ -300,6 +300,12 @@ void config_read(Ted *ted, char const *filename) {
} else {
config_err(cfg, "Invalid border thickness: %s.", value);
}
+ } else if (streq(key, "max-menu-width")) {
+ if (is_integer && integer >= 10 && integer < U16_MAX) {
+ settings->max_menu_width = (u16)integer;
+ } else {
+ config_err(cfg, "Invalid max menu width: %s.", value);
+ }
} else {
config_err(cfg, "Unrecognized core setting: %s.", key);
}