diff options
author | Phil Jones <philj56@gmail.com> | 2023-05-14 19:01:28 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2023-05-14 19:03:44 +0100 |
commit | 6060daaee163918f97af4db09bba9a7f9272d6c1 (patch) | |
tree | 853139b0373c3673fd7b50cc684f46f0f852b692 /src/input.c | |
parent | dcc12cb8845e52943fbc6d42ec86f3b0acf80b76 (diff) |
Add --print-index option.
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c index 429b1d1..fe777f6 100644 --- a/src/input.c +++ b/src/input.c @@ -127,7 +127,7 @@ void add_character(struct tofi *tofi, xkb_keycode_t keycode) N_ELEM(buf)); entry->input_utf8_length += len; - if (entry->drun) { + if (entry->mode == TOFI_MODE_DRUN) { struct string_ref_vec results = desktop_vec_filter(&entry->apps, entry->input_utf8, tofi->matching_algorithm); string_ref_vec_destroy(&entry->results); entry->results = results; @@ -165,7 +165,7 @@ void input_refresh_results(struct tofi *tofi) entry->input_utf8[bytes_written] = '\0'; entry->input_utf8_length = bytes_written; string_ref_vec_destroy(&entry->results); - if (entry->drun) { + if (entry->mode == TOFI_MODE_DRUN) { entry->results = desktop_vec_filter(&entry->apps, entry->input_utf8, tofi->matching_algorithm); } else { entry->results = string_ref_vec_filter(&entry->commands, entry->input_utf8, tofi->matching_algorithm); |