From bf144ceca6285af5ce9f64f1176cb104f78b9637 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Mon, 21 Nov 2022 23:59:14 +0000 Subject: Add --clip-to-padding option. --- src/config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 3f2873d..470b4ae 100644 --- a/src/config.c +++ b/src/config.c @@ -480,6 +480,8 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const percent = parse_uint32_percent(filename, lineno, value, &err); tofi->window.entry.padding_right = percent.value; tofi->window.entry.padding_right_is_percent = percent.percent; + } else if (strcasecmp(option, "clip-to-padding") == 0) { + tofi->window.entry.clip_to_padding = parse_bool(filename, lineno, value, &err); } else if (strcasecmp(option, "horizontal") == 0) { tofi->window.entry.horizontal = parse_bool(filename, lineno, value, &err); } else if (strcasecmp(option, "hide-cursor") == 0) { -- cgit v1.2.3