Code

Rename variable sun as it is predefined (to 1) on solaris
[ncmpc.git] / src / list_window.c
index ea4b3c28e9366edbb8fe09ddcec0548dab305ef2..010deb86002916951dbee3572d35112f9d13ee9d 100644 (file)
@@ -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;
                        }