diff options
author | Phil Jones <philj56@gmail.com> | 2022-11-19 14:33:50 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-11-19 14:43:03 +0000 |
commit | d04ca544d6845fc655cd4ba55e134de6bead6a2d (patch) | |
tree | 7fd444b1f0a28d46c46775bd7266381906dd3a1f /src/config.c | |
parent | 2c7735f2bac4d35d13c315eb8e5eee1af980b19a (diff) |
Add --history-file option.
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 0875d86..34bc8eb 100644 --- a/src/config.c +++ b/src/config.c @@ -411,6 +411,8 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const tofi->hide_cursor = parse_bool(filename, lineno, value, &err); } else if (strcasecmp(option, "history") == 0) { tofi->use_history = parse_bool(filename, lineno, value, &err); + } else if (strcasecmp(option, "history-file") == 0) { + snprintf(tofi->history_file, N_ELEM(tofi->history_file), "%s", value); } else if (strcasecmp(option, "fuzzy-match") == 0) { tofi->fuzzy_match = parse_bool(filename, lineno, value, &err); } else if (strcasecmp(option, "require-match") == 0) { |