summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-02 19:58:20 -0400
committerpommicket <pommicket@gmail.com>2022-11-02 19:58:20 -0400
commit9d0433ba028792f5a468507dba28d406b9f758e7 (patch)
treef83f5db4b4d6e54ef70c252f624b108d40978ac6 /ui.c
parentb070e5ce01c829bd101b1e0eda49f1e25d9d125c (diff)
fixed path-specific settings bugs. stuff seems to be working now
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;
}