diff options
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/input.c b/src/input.c index 5864cd1..9be16e9 100644 --- a/src/input.c +++ b/src/input.c @@ -130,13 +130,13 @@ void add_character(struct tofi *tofi, xkb_keycode_t keycode) N_ELEM(buf)); entry->input_utf8_length += len; if (entry->drun) { - struct string_vec results = desktop_vec_filter(&entry->apps, entry->input_utf8, tofi->fuzzy_match); - string_vec_destroy(&entry->results); + struct string_ref_vec results = desktop_vec_filter(&entry->apps, entry->input_utf8, tofi->fuzzy_match); + string_ref_vec_destroy(&entry->results); entry->results = results; } else { - struct string_vec tmp = entry->results; - entry->results = string_vec_filter(&entry->results, entry->input_utf8, tofi->fuzzy_match); - string_vec_destroy(&tmp); + struct string_ref_vec tmp = entry->results; + entry->results = string_ref_vec_filter(&entry->results, entry->input_utf8, tofi->fuzzy_match); + string_ref_vec_destroy(&tmp); } reset_selection(tofi); @@ -154,11 +154,11 @@ void input_refresh_results(struct tofi *tofi) } entry->input_utf8[bytes_written] = '\0'; entry->input_utf8_length = bytes_written; - string_vec_destroy(&entry->results); + string_ref_vec_destroy(&entry->results); if (entry->drun) { entry->results = desktop_vec_filter(&entry->apps, entry->input_utf8, tofi->fuzzy_match); } else { - entry->results = string_vec_filter(&entry->commands, entry->input_utf8, tofi->fuzzy_match); + entry->results = string_ref_vec_filter(&entry->commands, entry->input_utf8, tofi->fuzzy_match); } reset_selection(tofi); |