diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-24 15:46:08 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-24 15:46:08 -0500 |
commit | accf188e7c84ee627d5e4cfe12c141e929699830 (patch) | |
tree | 16ff19058ecae11b8cba9ba1d0d4f7bb1ae18184 /config.c | |
parent | 8c5eb397121c7fb3fa7feb2391d7c9b674b4190b (diff) |
scroll file selector when selected goes offscreen
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); } |