From: Max Kellermann Date: Fri, 2 Oct 2009 17:19:06 +0000 (+0200) Subject: screen_search: call do_search() on CMD_SCREEN_UPDATE X-Git-Tag: release-0.16~214 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=240596a68600085f4d49271094525f66d0b39fd9;p=ncmpc.git screen_search: call do_search() on CMD_SCREEN_UPDATE The old code just called filelist_search(), which is the simple search. This could not reload the "advanced" search result. --- diff --git a/src/screen_search.c b/src/screen_search.c index 1710f5a..09d5b55 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -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); }