Skip to content

Commit fc3612c

Browse files
committed
---
yaml --- r: 132640 b: refs/heads/dist-snap c: 1d784d4 h: refs/heads/master v: v3
1 parent 6bd35c5 commit fc3612c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 0f5ce0f0df106bde3b65a97079ebf8cd9e47bc20
9+
refs/heads/dist-snap: 1d784d46613af14e2c54f3b2b5ce8bb50775e18b
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustdoc/html/static/main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@
368368
}
369369

370370
function getQuery() {
371-
var matches, type, query = $('.search-input').val();
371+
var matches, type, query, raw = $('.search-input').val();
372+
query = raw;
372373

373374
matches = query.match(/^(fn|mod|struct|enum|trait|t(ype)?d(ef)?)\s*:\s*/i);
374375
if (matches) {
@@ -379,6 +380,7 @@
379380
}
380381

381382
return {
383+
raw: raw,
382384
query: query,
383385
type: type,
384386
id: query + type,
@@ -534,10 +536,10 @@
534536
if (browserSupportsHistoryApi()) {
535537
if (!history.state && !params.search) {
536538
history.pushState(query, "", "?search=" +
537-
encodeURIComponent(query.query));
539+
encodeURIComponent(query.raw));
538540
} else {
539541
history.replaceState(query, "", "?search=" +
540-
encodeURIComponent(query.query));
542+
encodeURIComponent(query.raw));
541543
}
542544
}
543545

0 commit comments

Comments
 (0)