aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-12-19 13:07:05 +0000
committerKalle Wallin <kaw@linux.se>2004-12-19 13:07:05 +0000
commitb5cfc9320d75a93809d77751f2d9e220b7a09219 (patch)
tree991c62a1b837e120a6369013af702e4de393cfcd
parent31126ced9b1521c560d6e7f601df434c7dbd7c9f (diff)
downloadmpd-b5cfc9320d75a93809d77751f2d9e220b7a09219.tar.gz
mpd-b5cfc9320d75a93809d77751f2d9e220b7a09219.tar.xz
mpd-b5cfc9320d75a93809d77751f2d9e220b7a09219.zip
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
-rw-r--r--src/screen_search.c3
1 files changed, 3 insertions, 0 deletions
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);