Code

screen_search: call do_search() on CMD_SCREEN_UPDATE
authorMax Kellermann <max@duempel.org>
Fri, 2 Oct 2009 17:19:06 +0000 (19:19 +0200)
committerMax Kellermann <max@duempel.org>
Fri, 2 Oct 2009 17:19:06 +0000 (19:19 +0200)
The old code just called filelist_search(), which is the simple
search.  This could not reload the "advanced" search result.

src/screen_search.c

index 1710f5af0705df86f14728c11589be7cb3bf8726..09d5b553a0111fa82475eeab76787fc3c908f1f0 100644 (file)
@@ -435,10 +435,7 @@ screen_search_cmd(struct mpdclient *c, command_t cmd)
        case CMD_SCREEN_UPDATE:
                if (pattern) {
                        search_clear(false);
-                       browser.filelist = filelist_search(c,
-                                                         FALSE,
-                                                         mode[options.search_mode].table,
-                                                         pattern);
+                       browser.filelist = do_search(c, pattern);
                        screen_browser_sync_highlights(browser.filelist,
                                                       &c->playlist);
                }