Skip to content

Commit

Permalink
rustdoc: Update document title when displaying search results
Browse files Browse the repository at this point in the history
Fixes #26360.
  • Loading branch information
jooert committed Jun 18, 2015
1 parent 7a13b93 commit d234b0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustdoc/html/static/main.js
Expand Up @@ -571,6 +571,9 @@
return;
}

// Update document title to maintain a meaningful browser history
$(document).prop("title", "Results for " + query.query + " - Rust");

// Because searching is incremental by character, only the most
// recent search query is added to the browser history.
if (browserSupportsHistoryApi()) {
Expand Down

0 comments on commit d234b0b

Please sign in to comment.