From b5cfc9320d75a93809d77751f2d9e220b7a09219 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Sun, 19 Dec 2004 13:07:05 +0000 Subject: Bugfix from Niko Tyni, survive find operations on empty search results git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2807 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/screen_search.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/screen_search.c b/src/screen_search.c index 95c3830c1..71329f0cc 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -280,6 +280,9 @@ search_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) return screen_find(screen, c, lw, filelist->length, cmd, browse_lw_callback, (void *) filelist); + else + return 1; + case CMD_MOUSE_EVENT: return browse_handle_mouse_event(screen,c,lw,filelist); -- cgit v1.2.3