Skip to content

Commit e8db5ad

Browse files
fix function not appearing in first tab when appearing in another one. Thanks to @Seeker14491 for this one!
1 parent f6a546e commit e8db5ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/html/static/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,8 @@
979979
}
980980
}
981981
if (results['others'].length < maxResults &&
982-
((query.search && obj.name.indexOf(query.search)) || added === false)) {
982+
((query.search && obj.name.indexOf(query.search) !== -1) ||
983+
added === false)) {
983984
results['others'].push(obj);
984985
}
985986
}

0 commit comments

Comments
 (0)