From 4576231a059b4001427e392f94d6ece2c1ae9ef4 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Thu, 17 Jul 2025 15:05:19 -0500 Subject: Add -r require flag --- 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 d45e62b..98015ce 100644 --- a/src/config.c +++ b/src/config.c @@ -323,6 +323,8 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const tofi->anchor = ANCHOR_BOTTOM; } else if (strcasecmp(option, "password") == 0) { tofi->window.entry.hide_input = true; + } else if (strcasecmp(option, "require") == 0) { + tofi->require_match = true; } else if (strcasecmp(option, "anchor") == 0) { uint32_t val = parse_anchor(filename, lineno, value, &err); if (!err) { -- cgit v1.2.3