Code

Bugfix from Niko Tyni, survive find operations on empty search results
authorKalle Wallin <kaw@linux.se>
Sun, 19 Dec 2004 13:07:05 +0000 (13:07 +0000)
committerKalle Wallin <kaw@linux.se>
Sun, 19 Dec 2004 13:07:05 +0000 (13:07 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2807 09075e82-0dd4-0310-85a5-a0d7c8717e4f

src/screen_search.c

index 95c3830c1f53c667bbfb1e8ff07fb3d9b3383fb0..71329f0cc507226941867541919a50eda8262ad5 100644 (file)
@@ -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);