From 9e8af9d25106b615dabf956305f4ef80496ed412 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 24 Jul 2022 12:31:09 +0100 Subject: Add drun mode. This is a pretty simple implementation, but it should work for most use cases. Notably, generic application names aren't used (though that could be added without too much hassle), and neither are keywords (that would be more difficult). --- src/string_vec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/string_vec.c') diff --git a/src/string_vec.c b/src/string_vec.c index 8806705..c337c61 100644 --- a/src/string_vec.c +++ b/src/string_vec.c @@ -79,6 +79,8 @@ void string_vec_add(struct string_vec *restrict vec, const char *restrict str) vec->buf = xrealloc(vec->buf, vec->size * sizeof(vec->buf[0])); } vec->buf[vec->count].string = xstrdup(str); + vec->buf[vec->count].search_score = 0; + vec->buf[vec->count].history_score = 0; vec->count++; } -- cgit v1.2.3