Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e8db5ad

Browse files
committedNov 1, 2017
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

Lines changed: 2 additions & 1 deletion
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)
Please sign in to comment.