summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.c b/ui.c
index 72c5ca2..583962e 100644
--- a/ui.c
+++ b/ui.c
@@ -197,8 +197,8 @@ static int qsort_file_entry_cmp(void *search_termv, void const *av, void const *
return +1;
}
if (search_term) {
- bool a_prefix = str_is_prefix(a->name, search_term);
- bool b_prefix = str_is_prefix(b->name, search_term);
+ bool a_prefix = str_has_prefix(a->name, search_term);
+ bool b_prefix = str_has_prefix(b->name, search_term);
if (a_prefix && !b_prefix) {
return -1;
}