summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-24 15:46:08 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-24 15:46:08 -0500
commitaccf188e7c84ee627d5e4cfe12c141e929699830 (patch)
tree16ff19058ecae11b8cba9ba1d0d4f7bb1ae18184 /config.c
parent8c5eb397121c7fb3fa7feb2391d7c9b674b4190b (diff)
scroll file selector when selected goes offscreen
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 9a2bed8..39a5d80 100644
--- a/config.c
+++ b/config.c
@@ -312,6 +312,12 @@ void config_read(Ted *ted, char const *filename) {
} else {
config_err(cfg, "Invalid padding: %s.", value);
}
+ } else if (streq(key, "scrolloff")) {
+ if (is_integer && integer >= 1 && integer < 100) {
+ settings->scrolloff = (u8)integer;
+ } else {
+ config_err(cfg, "Invalid scrolloff: %s.", value);
+ }
} else {
config_err(cfg, "Unrecognized core setting: %s.", key);
}