aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list_window.c')
-rw-r--r--src/list_window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list_window.c b/src/list_window.c
index ea4b3c28e..010deb860 100644
--- a/src/list_window.c
+++ b/src/list_window.c
@@ -20,7 +20,7 @@
#include "config.h"
#include "options.h"
#include "charset.h"
-#include "support.h"
+#include "match.h"
#include "command.h"
#include "colors.h"
@@ -223,7 +223,7 @@ list_window_find(struct list_window *lw,
do {
while ((label = callback(i,&h,callback_data))) {
- if (str && label && strcasestr(label, str)) {
+ if (str && label && match_line(label, str)) {
lw->selected = i;
return true;
}
@@ -259,7 +259,7 @@ list_window_rfind(struct list_window *lw,
do {
while (i >= 0 && (label = callback(i,&h,callback_data))) {
- if( str && label && strcasestr(label, str) ) {
+ if( str && label && match_line(label, str) ) {
lw->selected = i;
return true;
}