diff --git a/src/browser.c b/src/browser.c
index 31972be5cdc519ecabfbb1086b95dbf73729b0f5..1f594a934e009b203fc279d432922f5416148cb0 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -770,7 +770,7 @@ void findnextfile(const char *needle)
 	if (came_full_circle) {
 	    /* We're back at the beginning and didn't find anything. */
 	    not_found_msg(needle);
-	    return;
+	    break;
 	}
 
 	/* Move to the next filename in the list.  If we've reached the